rad 8.2.0
Loading...
Searching...
No Matches
rad::SimpleLogger Class Reference

#include <simpleLogger.hpp>

Public Member Functions

 SimpleLogger ()
 
virtual ~SimpleLogger ()
 
std::ostringstream & Get (const LogLevel level=LOG_LEVEL_INFO, const std::source_location &location=std::source_location::current())
 

Static Public Member Functions

static LogLevel & ReportingLevel ()
 
static bool & EnableConsole ()
 
static bool & EnableLogMon ()
 
static bool IsEnabled ()
 
static std::string & ModuleName ()
 
static std::string & ProcName ()
 
static std::string & HostName ()
 
static std::string LevelToString (LogLevel level)
 
static std::string LevelToStringLogMon (LogLevel level)
 
static LogLevel LevelFromString (const std::string &level)
 
static void OpenLogMon (const char *procname)
 
static void CloseLogMon ()
 

Protected Attributes

std::ostringstream m_output
 
LogLevel m_level
 
std::source_location m_location
 

Constructor & Destructor Documentation

◆ SimpleLogger()

rad::SimpleLogger::SimpleLogger ( )
inline

◆ ~SimpleLogger()

rad::SimpleLogger::~SimpleLogger ( )
inlinevirtual

Member Function Documentation

◆ CloseLogMon()

void rad::SimpleLogger::CloseLogMon ( )
inlinestatic

◆ EnableConsole()

bool & rad::SimpleLogger::EnableConsole ( )
inlinestatic

◆ EnableLogMon()

bool & rad::SimpleLogger::EnableLogMon ( )
inlinestatic

◆ Get()

std::ostringstream & rad::SimpleLogger::Get ( const LogLevel level = LOG_LEVEL_INFO,
const std::source_location & location = std::source_location::current() )
inline

◆ HostName()

std::string & rad::SimpleLogger::HostName ( )
inlinestatic

◆ IsEnabled()

bool rad::SimpleLogger::IsEnabled ( )
inlinestatic

◆ LevelFromString()

LogLevel rad::SimpleLogger::LevelFromString ( const std::string & level)
inlinestatic

◆ LevelToString()

std::string rad::SimpleLogger::LevelToString ( LogLevel level)
inlinestatic

◆ LevelToStringLogMon()

std::string rad::SimpleLogger::LevelToStringLogMon ( LogLevel level)
inlinestatic

◆ ModuleName()

std::string & rad::SimpleLogger::ModuleName ( )
inlinestatic

◆ OpenLogMon()

void rad::SimpleLogger::OpenLogMon ( const char * procname)
inlinestatic

◆ ProcName()

std::string & rad::SimpleLogger::ProcName ( )
inlinestatic

◆ ReportingLevel()

LogLevel & rad::SimpleLogger::ReportingLevel ( )
inlinestatic

Member Data Documentation

◆ m_level

LogLevel rad::SimpleLogger::m_level
protected

◆ m_location

std::source_location rad::SimpleLogger::m_location
protected

◆ m_output

std::ostringstream rad::SimpleLogger::m_output
protected

The documentation for this class was generated from the following file: