Logger class for referencing loggers in python. Not needed in C++ (use macros) Wraps and manipulates loggers for python as python has no macros. More...
#include </home/trondeau/code/gnuradio/build/master/gnuradio-runtime/include/gnuradio/logger.h>
Public Member Functions | |
logger (std::string logger_name) | |
contructor Provide name of logger to associate with this class More... | |
~logger () | |
Destructor. More... | |
void | set_level (std::string level) |
inline function, wrapper to set the logger level More... | |
void | get_level (std::string &level) |
inline function, wrapper to get the logger level More... | |
void | debug (std::string msg) |
inline function, wrapper for LOG4CPP_DEBUG for DEBUG message More... | |
void | info (std::string msg) |
inline function, wrapper for LOG4CPP_INFO for INFO message More... | |
void | notice (std::string msg) |
inline function, wrapper for NOTICE message More... | |
void | warn (std::string msg) |
inline function, wrapper for LOG4CPP_WARN for WARN message More... | |
void | error (std::string msg) |
inline function, wrapper for LOG4CPP_ERROR for ERROR message More... | |
void | crit (std::string msg) |
inline function, wrapper for NOTICE message More... | |
void | alert (std::string msg) |
inline function, wrapper for ALERT message More... | |
void | fatal (std::string msg) |
inline function, wrapper for FATAL message More... | |
void | emerg (std::string msg) |
inline function, wrapper for EMERG message More... | |
void | errorIF (bool cond, std::string msg) |
inline function, wrapper for LOG4CPP_ASSERT for conditional ERROR message More... | |
void | log_assert (bool cond, std::string msg) |
inline function, wrapper for LOG4CPP_ASSERT for conditional ERROR message More... | |
void | add_appender (std::string appender) |
inline function, Method to add appender to logger by name (define appender in conf file) More... | |
void | set_appender (std::string appender) |
inline function, Method to set an appender to logger by name (define appender in conf file) More... | |
void | add_console_appender (std::string target, std::string pattern) |
inline function, Method to add console appender to logger More... | |
void | set_console_appender (std::string target, std::string pattern) |
inline function, Method to set a console appender to logger More... | |
void | add_file_appender (std::string filename, bool append, std::string pattern) |
inline function, Method to add file appender to logger More... | |
void | set_file_appender (std::string filename, bool append, std::string pattern) |
inline function, Method to set a file appender to logger More... | |
void | add_rollingfile_appender (std::string filename, size_t filesize, int bkup_index, bool append, mode_t mode, std::string pattern) |
inline function, Method to add rolling file appender to logger More... | |
Logger class for referencing loggers in python. Not needed in C++ (use macros) Wraps and manipulates loggers for python as python has no macros.
|
inline |
contructor Provide name of logger to associate with this class
logger_name | Name of logger associated with class |
References GR_LOG_ASSIGN_LOGPTR.
|
inline |
Destructor.
|
inline |
inline function, Method to add appender to logger by name (define appender in conf file)
References GR_LOG_ADD_APPENDER.
|
inline |
inline function, Method to add console appender to logger
References GR_LOG_ADD_CONSOLE_APPENDER.
|
inline |
inline function, Method to add file appender to logger
References GR_LOG_ADD_FILE_APPENDER.
|
inline |
inline function, Method to add rolling file appender to logger
References GR_LOG_ADD_ROLLINGFILE_APPENDER.
|
inline |
inline function, wrapper for ALERT message
References GR_LOG_ALERT.
|
inline |
inline function, wrapper for NOTICE message
References GR_LOG_CRIT.
|
inline |
inline function, wrapper for LOG4CPP_DEBUG for DEBUG message
References GR_LOG_DEBUG.
|
inline |
inline function, wrapper for EMERG message
References GR_LOG_EMERG.
|
inline |
inline function, wrapper for LOG4CPP_ERROR for ERROR message
References GR_LOG_ERROR.
inline function, wrapper for LOG4CPP_ASSERT for conditional ERROR message
References GR_LOG_ERRORIF.
|
inline |
inline function, wrapper for FATAL message
References GR_LOG_FATAL.
|
inline |
inline function, wrapper to get the logger level
References GR_LOG_GET_LEVEL.
|
inline |
inline function, wrapper for LOG4CPP_INFO for INFO message
References GR_LOG_INFO.
inline function, wrapper for LOG4CPP_ASSERT for conditional ERROR message
References GR_LOG_ASSERT.
|
inline |
inline function, wrapper for NOTICE message
References GR_LOG_NOTICE.
|
inline |
inline function, Method to set an appender to logger by name (define appender in conf file)
References GR_LOG_SET_APPENDER.
|
inline |
inline function, Method to set a console appender to logger
References GR_LOG_SET_CONSOLE_APPENDER.
|
inline |
inline function, Method to set a file appender to logger
References GR_LOG_SET_FILE_APPENDER.
|
inline |
inline function, wrapper to set the logger level
References GR_LOG_SET_LEVEL.
|
inline |
inline function, wrapper for LOG4CPP_WARN for WARN message
References GR_LOG_WARN.