Go to the source code of this file.
Namespaces | |
| namespace | l4snd | 
Classes | |
| class | l4snd::Logger | 
| Logger class.  More... | |
| struct | l4snd::Logger::DiagnosticInformation | 
| Keep additional diagnostic info.  More... | |
Defines | |
| #define | LOG4SENDPP_MACRO_LI(message, category, level) | 
| Output an extended log message.   | |
| #define | LOG4SENDPP_MACRO_TI(message, throwable, level) | 
| Output an extended log message.   | |
| #define | LOG4SENDPP_MACRO_LTI(message, category, throwable, level) | 
| Output an extended log message.   | |
| #define | LOG4SENDPP_MACRO(message, category, level) | 
| Output a log message.   | |
| #define | L4SND_INFO(x) LOG4SENDPP_MACRO_LI(x, "", LOG4SENDPP_NS::Logger::Info) | 
Output a log message with log level INFO.   | |
| #define | L4SND_WARN(x) LOG4SENDPP_MACRO_LI(x, "", LOG4SENDPP_NS::Logger::Warning) | 
Output a log message with log level WARNING.   | |
| #define | L4SND_ERROR(x) LOG4SENDPP_MACRO_LI(x, "", LOG4SENDPP_NS::Logger::Error) | 
Output a log message with log level ERROR.   | |
| #define | L4SND_FATAL(x) LOG4SENDPP_MACRO_LI(x, "", LOG4SENDPP_NS::Logger::Fatal) | 
Output a log message with log level FATAL.   | |
| #define | L4SND_TRACE(x) LOG4SENDPP_MACRO_LI(x, "", LOG4SENDPP_NS::Logger::Trace) | 
Output a log message with log level TRACE.   | |
| #define | L4SND_DEBUG(x) LOG4SENDPP_MACRO_LI(x, "", LOG4SENDPP_NS::Logger::Debug) | 
Output a log message with log level DEBUG.   | |
| #define | LOG4SENDPP_TRACE(x) L4SND_TRACE(x) | 
Output a log message with log level TRACE.   | |
| #define | LOG4SENDPP_DEBUG(x) L4SND_DEBUG(x) | 
Output a log message with log level DEBUG.   | |
| #define | LOG4SENDPP_INFO(x) L4SND_INFO(x) | 
Output a log message with log level INFO.   | |
| #define | LOG4SENDPP_WARNING(x) L4SND_WARN(x) | 
Output a log message with log level WARNING.   | |
| #define | LOG4SENDPP_ERROR(x) L4SND_ERROR(x) | 
Output a log message with log level ERROR.   | |
| #define | LOG4SENDPP_FATAL(x) L4SND_FATAL(x) | 
Output a log message with log level FATAL.   | |
Definition in file logger.h.
| #define L4SND_DEBUG | ( | x | ) | LOG4SENDPP_MACRO_LI(x, "", LOG4SENDPP_NS::Logger::Debug) | 
Output a log message with log level DEBUG. 
Also outputs location info of the current file and line.
| x | log message | 
| #define L4SND_ERROR | ( | x | ) | LOG4SENDPP_MACRO_LI(x, "", LOG4SENDPP_NS::Logger::Error) | 
Output a log message with log level ERROR. 
Also outputs location info of the current file and line.
| x | log message | 
| #define L4SND_FATAL | ( | x | ) | LOG4SENDPP_MACRO_LI(x, "", LOG4SENDPP_NS::Logger::Fatal) | 
Output a log message with log level FATAL. 
Also outputs location info of the current file and line.
| x | log message | 
| #define L4SND_INFO | ( | x | ) | LOG4SENDPP_MACRO_LI(x, "", LOG4SENDPP_NS::Logger::Info) | 
Output a log message with log level INFO. 
Also outputs location info of the current file and line.
| x | log message | 
| #define L4SND_TRACE | ( | x | ) | LOG4SENDPP_MACRO_LI(x, "", LOG4SENDPP_NS::Logger::Trace) | 
Output a log message with log level TRACE. 
Also outputs location info of the current file and line.
| x | log message | 
| #define L4SND_WARN | ( | x | ) | LOG4SENDPP_MACRO_LI(x, "", LOG4SENDPP_NS::Logger::Warning) | 
Output a log message with log level WARNING. 
Also outputs location info of the current file and line.
| x | log message | 
| #define LOG4SENDPP_DEBUG | ( | x | ) | L4SND_DEBUG(x) | 
Output a log message with log level DEBUG. 
Also outputs location info of the current file and line.
| x | log message | 
| #define LOG4SENDPP_ERROR | ( | x | ) | L4SND_ERROR(x) | 
Output a log message with log level ERROR. 
Also outputs location info of the current file and line.
| x | log message | 
| #define LOG4SENDPP_FATAL | ( | x | ) | L4SND_FATAL(x) | 
Output a log message with log level FATAL. 
Also outputs location info of the current file and line.
| x | log message | 
| #define LOG4SENDPP_INFO | ( | x | ) | L4SND_INFO(x) | 
Output a log message with log level INFO. 
Also outputs location info of the current file and line.
| x | log message | 
| #define LOG4SENDPP_MACRO | ( | message, | |||
| category, | |||||
| level | ) | 
Value:
do { if (LOG4SENDPP_NS::Logger::logger().isLogged(level)) \ { \ LOG4SENDPP_NS::Logger::logger().log(level, message, category); \ } \ } while (false)
| message | log message | |
| category | logging category | |
| level | loglevel | 
| #define LOG4SENDPP_MACRO_LI | ( | message, | |||
| category, | |||||
| level | ) | 
Value:
do { if (LOG4SENDPP_NS::Logger::logger().isLogged(level)) \ { \ if (LOG4SENDPP_NS::Logger::logger().isLocationInfoEnabled()) { \ const LOG4SENDPP_STD_NS::string filename__ = __FILE__; \ const unsigned line__ = __LINE__; \ const LOG4SENDPP_STD_NS::string methodname__ = LOG4SENDPP_FUNC_MACRO ; \ const LOG4SENDPP_STD_NS::string threadname__ = LOG4SENDPP_NS::ThreadDictionary::getCurrentNickname(); \ const LOG4SENDPP_NS::LocationInformation info__(filename__, line__, methodname__, threadname__); \ LOG4SENDPP_NS::Logger::logger().log(level, message, category, &info__); \ } \ else \ LOG4SENDPP_NS::Logger::logger().log(level, message, category, 0); \ } \ } while (false)
| message | log message | |
| category | logging category | |
| level | loglevel | 
| #define LOG4SENDPP_MACRO_LTI | ( | message, | |||
| category, | |||||
| throwable, | |||||
| level | ) | 
Value:
do { if (LOG4SENDPP_NS::Logger::logger().isLogged(level)) \ { \ if (LOG4SENDPP_NS::Logger::logger().isLocationInfoEnabled()) { \ const LOG4SENDPP_STD_NS::string filename__ = __FILE__; \ const unsigned line__ = __LINE__; \ const LOG4SENDPP_STD_NS::string methodname__ = LOG4SENDPP_FUNC_MACRO ; \ const LOG4SENDPP_STD_NS::string threadname__ = LOG4SENDPP_NS::ThreadDictionary::getCurrentNickname(); \ const LOG4SENDPP_STD_NS::string throwable__ = throwable; \ const LOG4SENDPP_NS::LocationInformation info__(filename__, line__, methodname__, threadname__, throwable__); \ LOG4SENDPP_NS::Logger::logger().log(level, message, category, &info__); \ } \ else \ LOG4SENDPP_NS::Logger::logger().log(level, message, category, 0); \ } \ } while (false)
| message | log message | |
| category | logging category | |
| throwable | exception name | |
| level | loglevel | 
| #define LOG4SENDPP_MACRO_TI | ( | message, | |||
| throwable, | |||||
| level | ) | 
Value:
do { if (LOG4SENDPP_NS::Logger::logger().isLogged(level)) \ { \ if (LOG4SENDPP_NS::Logger::logger().isLocationInfoEnabled()) { \ const LOG4SENDPP_STD_NS::string filename__ = __FILE__; \ const unsigned line__ = __LINE__; \ const LOG4SENDPP_STD_NS::string methodname__ = LOG4SENDPP_FUNC_MACRO ; \ const LOG4SENDPP_STD_NS::string threadname__ = LOG4SENDPP_NS::ThreadDictionary::getCurrentNickname(); \ const LOG4SENDPP_STD_NS::string throwable__ = throwable; \ const LOG4SENDPP_NS::LocationInformation info__(filename__, line__, methodname__, threadname__, throwable__); \ LOG4SENDPP_NS::Logger::logger().log(level, message, "", &info__); \ } \ else \ LOG4SENDPP_NS::Logger::logger().log(level, message, "", 0); \ } \ } while (false)
| message | log message | |
| throwable | exception name | |
| level | loglevel | 
| #define LOG4SENDPP_TRACE | ( | x | ) | L4SND_TRACE(x) | 
Output a log message with log level TRACE. 
Also outputs location info of the current file and line.
| x | log message | 
| #define LOG4SENDPP_WARNING | ( | x | ) | L4SND_WARN(x) | 
Output a log message with log level WARNING. 
Also outputs location info of the current file and line.
| x | log message | 
 1.5.3