Classes | |
class | ErrorHandler |
This class is used to "handle" errors encountered in an log4cplus::Appender. More... | |
class | OnlyOnceErrorHandler |
class | Appender |
Extend this class for implementing your own strategies for printing log statements. More... | |
class | PropertyConfigurator |
Provides configuration from an external file. More... | |
class | BasicConfigurator |
Use this class to quickly configure the package. More... | |
class | ConfigureAndWatchThread |
class | ConsoleAppender |
ConsoleAppender appends log events to STD_NAMESPACE cout or STD_NAMESPACE cerr using a layout specified by the user. More... | |
class | FileAppender |
Appends log events to a file. More... | |
class | RollingFileAppender |
RollingFileAppender extends FileAppender to backup the log files when they reach a certain size. More... | |
class | DailyRollingFileAppender |
DailyRollingFileAppender extends FileAppender so that the underlying file is rolled over at a user chosen frequency. More... | |
class | Hierarchy |
This class is specialized in retrieving loggers by name and also maintaining the logger hierarchy. More... | |
class | HierarchyLocker |
This is used to lock a Hierarchy. More... | |
class | Layout |
This class is used to layout strings sent to an log4cplus::Appender. More... | |
class | SimpleLayout |
SimpleLayout consists of the LogLevel of the log statement, followed by " - " and then the log message itself. More... | |
class | TTCCLayout |
TTCC layout format consists of time, thread, Logger and nested diagnostic context information, hence the name. More... | |
class | PatternLayout |
A flexible layout configurable with pattern string. More... | |
class | Logger |
This is the central class in the log4cplus package. More... | |
class | DefaultLoggerFactory |
This class is used to create the default implementation of the Logger class. More... | |
class | TraceLogger |
This class is used to produce "Trace" logging. More... | |
class | LogLevelManager |
This class is used to "manage" LogLevel definitions. More... | |
class | NDC |
The NDC class implements nested diagnostic contexts as defined by Neil Harrison in the article "Patterns for Logging Diagnostic Messages" part of the book "Pattern Languages of Program Design 3" edited by Martin et al. More... | |
struct | DiagnosticContext |
This is the internal object that is stored on the NDC stack. More... | |
class | NDCContextCreator |
This class ensures that a NDC#push call is always matched with a NDC#pop call even in the face of exceptions. More... | |
class | NullAppender |
Appends log events to a file. More... | |
class | SocketAppender |
Sends spi::InternalLoggingEvent objects to a remote a log server. More... | |
Namespaces | |
namespace | helpers |
namespace | pattern |
namespace | spi |
namespace | thread |
Typedefs | |
typedef helpers::SharedObjectPtr< Appender > | SharedAppenderPtr |
This is a pointer to an Appender. | |
typedef LOG4CPLUS_FSTREAM_NAMESPACE::ofstream | tofstream |
typedef LOG4CPLUS_FSTREAM_NAMESPACE::ifstream | tifstream |
typedef OFList< Logger > | LoggerList |
This is a list of Loggers. | |
typedef int | LogLevel |
Defines the minimum set of priorities recognized by the system, that is FATAL_LOG_LEVEL, ERROR_LOG_LEVEL, WARN_LOG_LEVEL, INFO_LOG_LEVEL, DEBUG_LOG_LEVEL, and TRACE_LOG_LEVEL. | |
typedef log4cplus::tstring(*) | LogLevelToStringMethod (LogLevel) |
This method type defined the signature of methods that convert LogLevels into strings. | |
typedef LogLevel(*) | StringToLogLevelMethod (const log4cplus::tstring &) |
This method type defined the signature of methods that convert strings into LogLevels. | |
typedef OFStack< DiagnosticContext > | DiagnosticContextStack |
typedef helpers::SharedObjectPtr< Appender > | SharedAppenderPtr |
typedef OFList< log4cplus::SharedAppenderPtr > | SharedAppenderPtrList |
typedef STD_NAMESPACE ostream | tostream |
typedef STD_NAMESPACE istream | tistream |
typedef OFOStringStream | tostringstream |
typedef char | tchar |
typedef OFString | tstring |
Enumerations | |
enum | DailyRollingFileSchedule { MONTHLY, WEEKLY, DAILY, TWICE_DAILY, HOURLY, MINUTELY } |
Functions | |
typedef | OFListIterator (Logger) LoggerListIterator |
LOG4CPLUS_EXPORT LogLevelManager & | getLogLevelManager () |
Returns the singleton LogLevelManager. | |
LOG4CPLUS_EXPORT NDC & | getNDC () |
Return a reference to the singleton object. | |
typedef | OFListIterator (log4cplus::SharedAppenderPtr) SharedAppenderPtrListIterator |
Variables | |
const LogLevel | OFF_LOG_LEVEL = 60000 |
The OFF_LOG_LEVEL LogLevel is used during configuration to turn off logging. | |
const LogLevel | FATAL_LOG_LEVEL = 50000 |
The FATAL_LOG_LEVEL LogLevel designates very severe error events that will presumably lead the application to abort. | |
const LogLevel | ERROR_LOG_LEVEL = 40000 |
The ERROR_LOG_LEVEL LogLevel designates error events that might still allow the application to continue running. | |
const LogLevel | WARN_LOG_LEVEL = 30000 |
The WARN_LOG_LEVEL LogLevel designates potentially harmful situations. | |
const LogLevel | INFO_LOG_LEVEL = 20000 |
The INFO_LOG_LEVEL LogLevel designates informational messages that highlight the progress of the application at coarse-grained level. | |
const LogLevel | DEBUG_LOG_LEVEL = 10000 |
The DEBUG_LOG_LEVEL LogLevel designates fine-grained informational events that are most useful to debug an application. | |
const LogLevel | TRACE_LOG_LEVEL = 0 |
The TRACE_LOG_LEVEL LogLevel is used to "trace" entry and exiting of methods. | |
const LogLevel | ALL_LOG_LEVEL = TRACE_LOG_LEVEL |
The ALL_LOG_LEVEL LogLevel is used during configuration to turn on all logging. | |
const LogLevel | NOT_SET_LOG_LEVEL = -1 |
The NOT_SET_LOG_LEVEL LogLevel is used to indicated that no particular LogLevel is desired and that the default should be used. |
This method type defined the signature of methods that convert LogLevels into strings.
Note: Must return an empty tstring
for unrecognized values.
Definition at line 99 of file loglevel.h.
typedef LogLevel(*) log4cplus::StringToLogLevelMethod(const log4cplus::tstring &) |
This method type defined the signature of methods that convert strings into LogLevels.
Note: Must return NOT_SET_LOG_LEVEL
for unrecognized values.
Definition at line 107 of file loglevel.h.