Apache Log4cxx  Version 1.3.1
Loading...
Searching...
No Matches
log4cxx/logger.h File Reference

Go to the source code of this file.

Classes

class  log4cxx::Logger
 This is the central class in the log4cxx package. More...
 

Namespaces

namespace  log4cxx
 
namespace  log4cxx::spi
 

Macros

#define LOG4CXX_UNLIKELY(expr)   expr
 Provides optimization hint to the compiler to optimize for the expression being false.
 
#define LOG4CXX_STACKTRACE
 
#define LOG4CXX_FMT_VA_ARG(...)   , __VA_ARGS__
 
#define LOG4CXX_LOG(logger, level, message)
 Add a new logging event containing message to attached appender(s) if this logger is enabled for events.
 
#define LOG4CXX_LOG_FMT(logger, level, fmt, ...)
 Add a new logging event containing a message defined by fmt and ... to attached appender(s) if this logger is enabled for events.
 
#define LOG4CXX_LOGLS(logger, level, message)
 Add a new logging event containing message to attached appender(s) if this logger is enabled for events.
 
#define LOG4CXX_DEBUG(logger, message)
 Add a new logging event containing message to attached appender(s) if logger is enabled for DEBUG events.
 
#define LOG4CXX_DEBUG_FMT(logger, fmt, ...)
 Add a new logging event containing a message defined by fmt and ... to attached appender(s) if logger is enabled for DEBUG events.
 
#define LOG4CXX_TRACE(logger, message)
 Add a new logging event containing message to attached appender(s) if logger is enabled for TRACE events.
 
#define LOG4CXX_TRACE_FMT(logger, fmt, ...)
 Add a new logging event containing a message defined by fmt and ... to attached appender(s) if logger is enabled for TRACE events.
 
#define LOG4CXX_INFO(logger, message)
 Add a new logging event containing message to attached appender(s) if logger is enabled for INFO events.
 
#define LOG4CXX_INFO_FMT(logger, fmt, ...)
 Add a new logging event containing a message defined by fmt and ... to attached appender(s) if logger is enabled for INFO events.
 
#define LOG4CXX_WARN(logger, message)
 Add a new logging event containing message to attached appender(s) if logger is enabled for WARN events.
 
#define LOG4CXX_WARN_FMT(logger, fmt, ...)
 Add a new logging event containing a message defined by fmt and ... to attached appender(s) if logger is enabled for WARN events.
 
#define LOG4CXX_ERROR(logger, message)
 Add a new logging event containing message to attached appender(s) if logger is enabled for ERROR events.
 
#define LOG4CXX_ERROR_FMT(logger, fmt, ...)
 Add a new logging event containing a message defined by fmt and ... to attached appender(s) if logger is enabled for ERROR events.
 
#define LOG4CXX_ASSERT(logger, condition, message)
 If condition is not true, add a new logging event containing message to attached appender(s) if logger is enabled for ERROR events.
 
#define LOG4CXX_ASSERT_FMT(logger, condition, fmt, ...)
 If condition is not true, add a new logging event containing a message defined by fmt and ... to attached appender(s) if logger is enabled for ERROR events.
 
#define LOG4CXX_FATAL(logger, message)
 Add a new logging event containing message to attached appender(s) if logger is enabled for FATAL events.
 
#define LOG4CXX_FATAL_FMT(logger, fmt, ...)
 Add a new logging event containing a message defined by fmt and ... to attached appender(s) if logger is enabled for FATAL events.
 
#define LOG4CXX_L7DLOG(logger, level, key)
 Add a new logging event containing the localized message key to attached appender(s) if logger is enabled for level events.
 
#define LOG4CXX_L7DLOG1(logger, level, key, p1)
 Add a new logging event containing the localized message key to attached appender(s) if logger is enabled for level events with one parameter.
 
#define LOG4CXX_L7DLOG2(logger, level, key, p1, p2)
 Add a new logging event containing the localized message key to attached appender(s) if logger is enabled for level events with two parameters.
 
#define LOG4CXX_L7DLOG3(logger, level, key, p1, p2, p3)
 Add a new logging event containing the localized message key to attached appender(s) if logger is enabled for level events with three parameters.
 

Functions

 log4cxx::spi::LOG4CXX_PTR_DEF (LoggerRepository)
 
 log4cxx::spi::LOG4CXX_PTR_DEF (LoggerFactory)
 
 log4cxx::LOG4CXX_PTR_DEF (Logger)
 smart pointer to a Logger class
 
 log4cxx::LOG4CXX_LIST_DEF (LoggerList, LoggerPtr)
 

Macro Definition Documentation

◆ LOG4CXX_FMT_VA_ARG

#define LOG4CXX_FMT_VA_ARG (   ...)    , __VA_ARGS__

◆ LOG4CXX_STACKTRACE

#define LOG4CXX_STACKTRACE

◆ LOG4CXX_UNLIKELY

#define LOG4CXX_UNLIKELY (   expr)    expr

Provides optimization hint to the compiler to optimize for the expression being false.

Parameters
exprboolean expression.
Returns
value of expression.