Logging in Petals

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

Changes (5)

View Page History
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 *info* and *debug* traces are printed *without* class and method name,
** the debug *info* and i*debug* traces are printed *with* class and method name, and *no method entrance traces* 'start'/'end'/'call' are generated,
* FINEST:
** all traces except debug *info* and *debug* traces are printed *without* class and method name,
** *info* traces, *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}}.