Public Member Functions |
Protected Member Functions |
Protected Attributes |
Private Attributes |
List of all members
biogears::Logger Class Reference
#include <Logger.h>
Inheritance diagram for biogears::Logger:

Public Member Functions | |
Logger (const std::string &logFilename=Loggable::empty, const std::string &working_dir=Loggable::empty) | |
Logger (const char *logFilename, const char *working_dir=Loggable::empty_cStr) | |
virtual | ~Logger () |
void | LogToConsole (bool log_to_console) |
void | FormatMessages (bool format_messages) |
void | ResetLogFile (const std::string &logFilename=Loggable::empty, const std::string &working_dir=Loggable::empty) |
void | ResetLogFile (const char *logFilename, const char *working_dir=Loggable::empty_cStr) |
void | SetLogLevel (log4cpp::Priority::Value priority) const |
void | SetConsoleLogLevel (log4cpp::Priority::Value priority) const |
log4cpp::Priority::Value | GetLogLevel () |
virtual void | SetLogTime (const SEScalarTime *time) |
void | SetsetConversionPattern (const std::string &) |
void | SetConsolesetConversionPattern (const std::string &) |
virtual void | SetForward (LoggerForward *forward) |
virtual bool | HasForward () |
virtual void | Debug (const std::string &msg, std::string const &origin=Loggable::empty) const |
virtual void | Info (const std::string &msg, std::string const &origin=Loggable::empty) const |
virtual void | Warning (const std::string &msg, std::string const &origin=Loggable::empty) const |
virtual void | Error (const std::string &msg, std::string const &origin=Loggable::empty) const |
virtual void | Fatal (const std::string &msg, std::string const &origin=Loggable::empty) const |
virtual void | Debug (std::ostream const &msg, std::string const &origin=Loggable::empty) const |
virtual void | Info (std::ostream const &msg, std::string const &origin=Loggable::empty) const |
virtual void | Warning (std::ostream const &msg, std::string const &origin=Loggable::empty) const |
virtual void | Error (std::ostream const &msg, std::string const &origin=Loggable::empty) const |
virtual void | Fatal (std::ostream const &msg, std::string const &origin=Loggable::empty) const |
Protected Member Functions | |
virtual std::string | FormatLogMessage (const std::string &origin, const std::string &msg) const |
Protected Attributes | |
LoggerForward * | m_Forward |
log4cpp::Category * | m_Log |
log4cpp::Appender * | m_FileAppender |
log4cpp::Appender * | m_ConsoleAppender |
const SEScalarTime * | m_time |
std::stringstream | m_ss |
bool | m_FormatMessages |
Private Attributes | |
friend | Loggable |
Constructor & Destructor Documentation
biogears::Logger::Logger | ( | const std::string & | logFilename = Loggable::empty , |
const std::string & | working_dir = Loggable::empty |
||
) |
biogears::Logger::Logger | ( | const char * | logFilename, |
const char * | working_dir = Loggable::empty_cStr |
||
) |
|
virtual |
Member Function Documentation
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
void biogears::Logger::FormatMessages | ( | bool | format_messages | ) |
log4cpp::Priority::Value biogears::Logger::GetLogLevel | ( | ) |
|
virtual |
Reimplemented in biogears::NullLogger.
|
virtual |
|
virtual |
void biogears::Logger::LogToConsole | ( | bool | log_to_console | ) |
void biogears::Logger::ResetLogFile | ( | const std::string & | logFilename = Loggable::empty , |
const std::string & | working_dir = Loggable::empty |
||
) |
void biogears::Logger::ResetLogFile | ( | const char * | logFilename, |
const char * | working_dir = Loggable::empty_cStr |
||
) |
void biogears::Logger::SetConsoleLogLevel | ( | log4cpp::Priority::Value | priority | ) | const |
void biogears::Logger::SetConsolesetConversionPattern | ( | const std::string & | layout | ) |
|
virtual |
Reimplemented in biogears::NullLogger.
void biogears::Logger::SetLogLevel | ( | log4cpp::Priority::Value | priority | ) | const |
|
virtual |
Reimplemented in biogears::NullLogger.
void biogears::Logger::SetsetConversionPattern | ( | const std::string & | layout | ) |
|
virtual |
|
virtual |
Member Data Documentation
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |