Stormancer::ConsoleLogger Class Reference

Inherits Stormancer::ILogger.

Public Member Functions

 ConsoleLogger (const std::string &name="", LogLevel maxLogLevel=LogLevel::Trace)
 
 ConsoleLogger (LogLevel maxLogLevel)
 
void log (LogLevel level, const std::string &category, const std::string &message, const std::string &data="") override
 Logs a full message.
 
- Public Member Functions inherited from Stormancer::ILogger
virtual void log (const std::string &message)
 Logs a simple message.
 
virtual void log (const std::exception &ex)
 Logs an exception.
 
virtual void log (LogLevel level, const std::string &category, const std::string &message, const std::exception &ex)
 Logs a full message with exception as data.
 

Protected Attributes

LogLevel _maxLogLevel = LogLevel::Trace
 
std::shared_ptr< BufferLogger_bufferLogger = BufferLogger::getInstance()
 
- Protected Attributes inherited from Stormancer::ILogger
const std::string _name
 

Additional Inherited Members

- Static Public Member Functions inherited from Stormancer::ILogger
static std::string format (const std::string &name, LogLevel level, const std::string &category, const std::string &message, const std::string &data="")
 
static std::string formatException (const std::string &name, const std::exception &ex)
 
- Protected Member Functions inherited from Stormancer::ILogger
 ILogger (const std::string &name="")
 

The documentation for this class was generated from the following file:
  • stormancer/stormancer-sources/include/public/stormancer/Logger/ConsoleLogger.h