Defines | |
#define | LOGGER_EXIT(code) |
#define | DIE2(category, message) |
#define | WARN2(category, message) |
#define | INFO2(category, message) |
#define | LOG2(category, message) |
#define | TRACE2(category, message) |
#define LOGGER_EXIT | ( | code | ) |
#define DIE2 | ( | category, | |||
message | ) |
Value:
{ \ const char* formatted = log_printf message; \ log4cxx_from_c(category, DIE, formatted, __FILE__, __LOG4CXX_FUNC__, __LINE__); \ STD_FREE((void*)formatted); \ shutdown_log_system(); \ abort(); \ }
#define WARN2 | ( | category, | |||
message | ) |
Value:
{ \ if (is_warn_enabled(category)) { \ const char* formatted = log_printf message; \ log4cxx_from_c(category, WARN, formatted, __FILE__, __LOG4CXX_FUNC__, __LINE__); \ STD_FREE((void*)formatted); \ } \ }
#define INFO2 | ( | category, | |||
message | ) |
Value:
{ \ if (is_info_enabled(category)) { \ const char* formatted = log_printf message; \ log4cxx_from_c(category, INFO, formatted, __FILE__, __LOG4CXX_FUNC__, __LINE__); \ STD_FREE((void*)formatted); \ } \ }
#define LOG2 | ( | category, | |||
message | ) |
Value:
{ \ static LogSite logSite = {UNKNOWN, NULL}; \ if (logSite.state && is_log_enabled(category, &logSite)) { \ const char* formatted = log_printf message; \ log4cxx_from_c(category, LOG, formatted, __FILE__, __LOG4CXX_FUNC__, __LINE__); \ STD_FREE((void*)formatted); \ } \ }
#define TRACE2 | ( | category, | |||
message | ) |
Value:
{ \ static LogSite logSite = {UNKNOWN, NULL}; \ if (logSite.state && is_trace_enabled(category, &logSite)) { \ const char* formatted = log_printf message; \ log4cxx_from_c(category, TRACE, formatted, __FILE__, __LOG4CXX_FUNC__, __LINE__); \ STD_FREE((void*)formatted); \ } \ }
Genereated on Tue Mar 11 19:25:22 2008 by Doxygen.
(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.