|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (3)
View Page Historythe both previous log traces are written if the level *MONIT* is precised.
h2. Splitting log files\\
Petals ESB allow to split its log records into a log files hierarchy. This is done thanks to the ContextualFileHandler which can redirect log records to separate according to Petals ESB runtime properties.
In addition to standard Handler properties (level, formatter, etc..), ContextualFileHandler can be configured through the following extra properties :
\* basedir : base directory where log files will be stored. Default value (if no property set) is user home directory.
\* subdir : sub directory relative to basedir where log file will be stored. Default value (if no property set) is empty sub directory.
\* logFilename : log filename to use.
Both subdir and logFilename properties are dynamically evaluated each time a log record is written, and thus can use the following runtime properties :
\* processInstanceId
\* componentName
Petals ESB allow to split its log records into a log files hierarchy. This is done thanks to the ContextualFileHandler which can redirect log records to separate according to Petals ESB runtime properties.
In addition to standard Handler properties (level, formatter, etc..), ContextualFileHandler can be configured through the following extra properties :
\* basedir : base directory where log files will be stored. Default value (if no property set) is user home directory.
\* subdir : sub directory relative to basedir where log file will be stored. Default value (if no property set) is empty sub directory.
\* logFilename : log filename to use.
Both subdir and logFilename properties are dynamically evaluated each time a log record is written, and thus can use the following runtime properties :
\* processInstanceId
\* componentName
h2. Logged informations
After that, _Extended_ formatter allows to precise more detailed informations, as with SOAP component,
java.util.logging.ConsoleHandler.formatter = org.ow2.petals.commons.logger.PetalsSimpleFormatter
com.ebmwebsourcing.easycommons.logger.handler.ContextualFileHandler.level=FINEST
com.ebmwebsourcing.easycommons.logger.handler.ContextualFileHandler.basedir=${petals.home}/logs/
com.ebmwebsourcing.easycommons.logger.handler.ContextualFileHandler.subdir=${componentName}/${processInstanceId}
com.ebmwebsourcing.easycommons.logger.handler.ContextualFileHandler.logFilename=log
com.ebmwebsourcing.easycommons.logger.handler.ContextualFileHandler.formatter=com.ebmwebsourcing.easycommons.logger.LogDataFormatter
com.ebmwebsourcing.easycommons.logger.handler.ContextualFileHandler.basedir=${petals.home}/logs/
com.ebmwebsourcing.easycommons.logger.handler.ContextualFileHandler.subdir=${componentName}/${processInstanceId}
com.ebmwebsourcing.easycommons.logger.handler.ContextualFileHandler.logFilename=log
com.ebmwebsourcing.easycommons.logger.handler.ContextualFileHandler.formatter=com.ebmwebsourcing.easycommons.logger.LogDataFormatter
##Root level
.level = FINEST
.level = FINEST