Public Types |
Public Member Functions |
Protected Member Functions |
Protected Attributes |
Private Attributes |
List of all members
Logger Class Reference
#include <Logger.h>
Public Types | |
enum class | Level { Debug , Info , Warn , Error , Fatal } |
Public Member Functions | |
Logger (std::string const &logFilename="") | |
virtual | ~Logger () |
void | LogToConsole (bool b) |
bool | IsLoggingToConsole () |
void | AddConsolePrefix (const std::string &p) |
void | SetLogFile (std::string const &logFilename="") |
void | SetLogLevel (Level level) |
Level | GetLogLevel () const |
virtual void | SetLogTime (const SEScalarTime *time) |
virtual bool | HasForward () const |
virtual void | AddForward (LoggerForward *forward) |
virtual void | RemoveForward (LoggerForward *forward) |
virtual void | RemoveForwards () |
virtual void | Debug (std::string const &msg) |
virtual void | Debug (std::stringstream &msg) |
virtual void | Debug (std::ostream &msg) |
virtual void | Info (std::string const &msg) |
virtual void | Info (std::stringstream &msg) |
virtual void | Info (const std::stringstream &msg) |
virtual void | Info (std::ostream &msg) |
virtual void | Warning (std::string const &msg) |
virtual void | Warning (std::stringstream &msg) |
virtual void | Warning (std::ostream &msg) |
virtual void | Error (std::string const &msg) |
virtual void | Error (std::stringstream &msg) |
virtual void | Error (std::ostream &msg) |
virtual void | Fatal (std::string const &msg) |
virtual void | Fatal (std::stringstream &msg) |
virtual void | Fatal (std::ostream &msg) |
Protected Member Functions | |
virtual std::string | FormatLogMessage (std::string const &msg) |
Protected Attributes | |
std::vector< LoggerForward * > | m_Forwards |
const SEScalarTime * | m_time |
Private Attributes | |
friend | Loggable |
log_lib * | _log_lib |
Member Enumeration Documentation
◆ Level
|
strong |
Constructor & Destructor Documentation
◆ Logger()
Logger::Logger | ( | std::string const & | logFilename = "" | ) |
◆ ~Logger()
|
virtual |
Member Function Documentation
◆ AddConsolePrefix()
void Logger::AddConsolePrefix | ( | const std::string & | p | ) |
◆ AddForward()
|
virtual |
◆ Debug() [1/3]
|
virtual |
◆ Debug() [2/3]
|
virtual |
◆ Debug() [3/3]
|
virtual |
◆ Error() [1/3]
|
virtual |
◆ Error() [2/3]
|
virtual |
◆ Error() [3/3]
|
virtual |
◆ Fatal() [1/3]
|
virtual |
◆ Fatal() [2/3]
|
virtual |
◆ Fatal() [3/3]
|
virtual |
◆ FormatLogMessage()
|
protectedvirtual |
◆ GetLogLevel()
Logger::Level Logger::GetLogLevel | ( | ) | const |
◆ HasForward()
|
virtual |
◆ Info() [1/4]
|
virtual |
◆ Info() [2/4]
|
virtual |
◆ Info() [3/4]
|
virtual |
◆ Info() [4/4]
|
virtual |
◆ IsLoggingToConsole()
bool Logger::IsLoggingToConsole | ( | ) |
◆ LogToConsole()
void Logger::LogToConsole | ( | bool | b | ) |
◆ RemoveForward()
|
virtual |
◆ RemoveForwards()
|
virtual |
◆ SetLogFile()
void Logger::SetLogFile | ( | std::string const & | logFilename = "" | ) |
◆ SetLogLevel()
void Logger::SetLogLevel | ( | Logger::Level | l | ) |
◆ SetLogTime()
|
virtual |
◆ Warning() [1/3]
|
virtual |
◆ Warning() [2/3]
|
virtual |
◆ Warning() [3/3]
|
virtual |
Member Data Documentation
◆ _log_lib
|
private |
◆ Loggable
|
private |
◆ m_Forwards
|
protected |
◆ m_time
|
protected |