Here is a list of all documented class members with links to the class documentation for each member: a -. ABS_TIME_DATE_FORMAT. Detailed Description. This is the central class in the log4cxx package. Most logging operations, except configuration, are done through this class. Logging Services. log4cxx project. About · Team · Documentation log4cxx Documentation. Version Short introduction to log4cxx · Logging macros.

Author: Arashisida Grosar
Country: Togo
Language: English (Spanish)
Genre: Medical
Published (Last): 2 August 2013
Pages: 298
PDF File Size: 9.40 Mb
ePub File Size: 2.4 Mb
ISBN: 962-6-18115-532-5
Downloads: 40678
Price: Free* [*Free Regsitration Required]
Uploader: JoJocage

RollingFileAppender – n – name: See the appender additivity rule in the user manual for the meaning of the additivity flag. Look for the appender named as name. Loggers, Appenders and Layouts Log4cxx has three main components: It may also be the only way because debuggers are not always available or applicable.

However, the children of this logger will inherit its appenders, unless the children have their additivity flag set to false too. Return the the LoggerRepository where this Logger is attached.

Set the additivity flag for this Logger instance. Refer to the documentation of PatternLayout for further information on the syntax of the ConversionPattern key.

The key to be searched in the resourceBundle. The Logger class is designed so that this method executes as quickly as possible. Hierarchy – i – ignoresThrowable: Note that the parent of a given logger may change during the lifetime of the logger.


Print only messages of level WARN or above in the namespace com:: If this logger is INFO enabled, it proceeds to call all the registered appenders in this logger and also higher in the hierarchy depending on the value of the additivity flag. Appender “A1” will be a SyslogAppender log4j.

The package is distributed under the Apache Software Licensea fully-fledged open source license certified by the open source initiative. OptionConverter – t – tailFilter: It is intended to be used by sub-classes only.

Logger Class Reference

Location information extraction is comparatively very slow and should be avoided unless documentaation is not a concern. DateLayout – o – OFF: Subclasses of AppenderSkeleton should implement this method to perform actual logging. Named Hierarchy A logger is said to be an ancestor of another logger if its name followed by a dot is a prefix of the descendant logger name.

Remove the appender passed documebtation parameter from the list of appenders. If true, the information sent to the remote host will include location information.

Returns the parent of this logger. The syntax for configuring an appender’s layout is: Since logging is rarely the main focus of documentagion application, the log4cxx API strives to be simple to understand and to use.

PatternParser – f – fatal: If too verbose, it can cause scrolling blindness. For non-root categories the syntax is almost the same: Set appender specific options. If you are passing any of Level:: Appender Additivity The output of a log doccumentation of logger C will go to all the appenders in C and its ancestors.


log4cxx – Documentation

AppenderSkeletonAppender getFirstFilter: This method walks the hierarchy to find the appropriate resource bundle. Logger hierarchy The first and foremost advantage of any logging API over plain std:: The root logger will return 0. Loggers have their additivity flag set to true by default.

If this logger is WARN enabled, it proceeds to call all the registered appenders in this logger and also higher in the hierarchy depending on the value of the additivity flag. Hence, this method returns false. The root logger is anonymous but can be accessed with the Logger:: Output will go to the appender’s of the root logger, A2 in this case. Get the additivity flag for this Logger instance. This is the most generic printing method.

Setting this option to zero turns off reconnection capability. First, the user supplied key is searched in the resource bundle.

Author: admin