cxxlog.h File Reference


Namespaces

namespace  util

Defines

#define LOGGER_EXIT(code)
#define ECHO(message)
#define LECHO(message_number, messagedef_and_params)
#define DIE2(category, message)
#define LDIE2(category, message_number, messagedef_and_params)
#define WARN2(category, message)
#define LWARN2(category, message_number, messagedef_and_params)
#define INFO2(category, message)
#define LOG2(category, message)
#define TRACE2(category, message)

Variables

const char util.CLASS_LOGGER [] = "class"
 Predefined classloader filter.
const char util.GC_LOGGER [] = "gc"
 Predefined gc filter.
const char util.JNI_LOGGER [] = "jni"
 Predefined jni filter.


Define Documentation

#define LOGGER_EXIT ( code   ) 

Value:

{ \
    shutdown_log_system(); \
    ::exit(code); \
}

#define ECHO ( message   ) 

Value:

{ \
    LoggerString logger_string; \
    logger_string << message; \
    log4cxx_from_c("root", DIE, logger_string.release(), __FILE__, __LOG4CXX_FUNC__, __LINE__); \
}

#define LECHO ( message_number,
messagedef_and_params   ) 

Value:

{ \
    LogParams log_params(0x4543484f, message_number); \
    log_params << messagedef_and_params; \
    log4cxx_from_c("root", DIE, log_params.release(), __FILE__, __LOG4CXX_FUNC__, __LINE__); \
}

#define DIE2 ( category,
message   ) 

Value:

{ \
    LoggerString logger_string; \
    logger_string << message; \
    log4cxx_from_c(category, DIE, logger_string.release(), __FILE__, __LOG4CXX_FUNC__, __LINE__); \
    shutdown_log_system(); \
    ::abort(); \
}

#define LDIE2 ( category,
message_number,
messagedef_and_params   ) 

Value:

{ \
    LogParams log_params(0x4c444945, message_number); \
    log_params << messagedef_and_params; \
    log4cxx_from_c(category, DIE, log_params.release(), __FILE__, __LOG4CXX_FUNC__, __LINE__); \
    shutdown_log_system(); \
    ::abort(); \
}

#define WARN2 ( category,
message   ) 

Value:

{ \
    if (is_warn_enabled(category)) { \
    LoggerString logger_string; \
    logger_string << message; \
    log4cxx_from_c(category, WARN, logger_string.release(), __FILE__, __LOG4CXX_FUNC__, __LINE__); \
    } \
}

#define LWARN2 ( category,
message_number,
messagedef_and_params   ) 

Value:

{ \
    if (is_warn_enabled(category)) { \
    LogParams log_params(0x5741524e, message_number); \
    log_params << messagedef_and_params; \
    log4cxx_from_c(category, WARN, log_params.release(), __FILE__, __LOG4CXX_FUNC__, __LINE__); \
    } \
}

#define INFO2 ( category,
message   ) 

Value:

{ \
    if (is_info_enabled(category)) { \
    LoggerString logger_string; \
    logger_string << message; \
    log4cxx_from_c(category, INFO, logger_string.release(), __FILE__, __LOG4CXX_FUNC__, __LINE__); \
    } \
}

#define LOG2 ( category,
message   ) 

Value:

{ \
    static LogSite logSite = {UNKNOWN, NULL}; \
    if (logSite.state && is_log_enabled(category, &logSite)) { \
        LoggerString logger_string; \
        logger_string << message; \
        log4cxx_from_c(category, LOG, logger_string.release(), __FILE__, __LOG4CXX_FUNC__, __LINE__); \
    } \
}

#define TRACE2 ( category,
message   ) 

Value:

{ \
    static LogSite logSite = {UNKNOWN, NULL}; \
    if (logSite.state && is_trace_enabled(category, &logSite)) { \
        LoggerString logger_string; \
        logger_string << message; \
        log4cxx_from_c(category, TRACE, logger_string.release(), __FILE__, __LOG4CXX_FUNC__, __LINE__); \
    } \
}


Genereated on Tue Mar 11 19:25:41 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.