Logging in PETALS

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

Changes (9)

View Page History
The logger configuration file, named loggers.properties, is located in $PETALS_HOME/*conf* folder.
TODO: Fix location with debian or rpm installer.
{column}
{column:width=350px}

{panel:title=Petals logging Documentations}{children:all=true}{panel}
{panel:title=Contributors}{contributors:order=name|mode=list}{panel}
{column}
{section}

h2. Petals Logger Level

* FINEST (lowest value)



The root logger level is WARNING. It means that all classes log only SEVERE and WARNING information.
By settings the parameter *{+}Petals.level{+}* to INFO, we defines that all petals services will log at INFO level and at all higher level. The logger *{+}Petals{+}* is the root logger for petals services.
You can target specific packages to collect logging from and specify a level. Here is how you would set debugging from Petals. You would need to ensure the Handler's level is also set to collect this threshold, so FINEST or ALL should be set.
{code}
##Petals level
Petals.level = FINEST

#Handler Configuration
java.util.logging.ConsoleHandler.level = FINEST
{code}
If you want to debug only petals component

h2. Petals handler

By default two handler are used: consoleHandler and FileHandler.
The console handler is use to disply log in the console output. routing logging to stdout.


The parameter java.util.logging.ConsoleHandler.level define the level

This level logs
{column}
{column:width=350px}

{panel:title=Petals logging Documentations}{children:all=true}{panel}
{panel:title=Contributors}{contributors:order=name|mode=list}{panel}
{column}
{section}