Logging in Petals

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (3)

View Page History
* FINEST (lowest value) : All traces that can help a problem analysis are logged with this level.

This new level comes with dedicated information. So, to be printed, a new formatter was created: [{{org.ow2.petals.log.formatter.LogDataFormatter}}|#petals_formatter]. This formatter can be used with standard handlers as {{java.util.logging.ConsoleHandler}}.
According to the log level of the logger, the debug traces generated with log level {{FINE}}, {{FINER}} and {{FINEST}} can be extended with class and method name where the trace occurs:
* FINE:
** all traces except debug traces are printed *without* class and method name,
** the debug traces are printed *without* class and method name, and no method entrance traces 'start'/'end'/'call' are generated,
* FINER:
** all traces except debug are printed *without* class and method name,
** the debug traces are printed with class and method name, and no method entrance traces 'start'/'end'/'call' are generated,
* FINEST:
** all traces except debug are printed *without* class and method name,
** debug traces and method entrance traces 'start'/'end'/'call' are printed *with* class and method name.

The new level {{MONIT}} comes with dedicated information. So, to be printed, a new formatter was created: [{{org.ow2.petals.log.formatter.LogDataFormatter}}|#petals_formatter]. This formatter can be used with standard handlers as {{java.util.logging.ConsoleHandler}}.

To trace exchange activities into files, it is better to have a policy based on one log file per process instance instead of having one big file. One file by process instance is more human readable. So a new file handler is also provided: [{{org.ow2.petals.log.handler.PetalsFileHandler}}|#petals_file_handler].