|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (1)
View Page History...
{code}
Possible values for the property are: {{fatal}}, {{error}}, {{warn}}, {{info}}, {{debug}}, {{trace}}
Possible values for the property are: {{fatal}}, {{error}}, {{warn}}, {{info}}, {{debug}}, {{trace}}
h1. Tuning your logging configuration
If your Petals ESB containers used in production are:
* installed on Debian-based systems through Debian packages,
* and, running in [automatic mode|Starting and stopping Petals ESB installed by Debian packages],
you can disable the log handler 'console' for which all generated traces on the standard output are discarded, and used only a log handler 'file' ({{java.util.logging.FileHandler}}, {{org.ow2.petals.log.handler.PetalsFileHandler}} or {{org.ow2.petals.log.handler.PetalsPayloadDumperFileHandler}} according to your needs about the [flow monitoring|Monitoring Petals ESB Flows with its logs]).
{code}
# Configuration of the log handlers
#####################################
#handlers=java.util.logging.ConsoleHandler, org.ow2.petals.log.handler.PetalsFileHandler
handlers=org.ow2.petals.log.handler.PetalsFileHandler
{code}
h1. Known problems
h2. No trace more precise than INFO level are logged in the log file
*Operating system:* Debian-based Linux
*Symptoms:*
* Petals ESB is installed with the Debian packages,
* A Petals ESB container is started through the [automatic startup|Starting and stopping Petals ESB installed by Debian packages] ({{sudo service petals-esb start}}), or when booting the host,
* The log configuration file defines level FINEST for JBI component, or equivalent,
* No trace with level FINEST are flushed in the global log file ({{/var/log/petals-esb/<container-name>/petals.log}})
*Solutions to try:*
* Change the log level of the log handler {{org.ow2.petals.log.handler.PetalsFileHandler}} or {{org.ow2.petals.log.handler.PetalsPayloadDumperFileHandler}} and set it the value FINEST.
*Explanations:*
By default, the log configuration set a log level FINEST to the log handler 'console', and the standard output of Petals ESB container is redirected to {{/dev/null}} by the SysV init.
The global log file is the file generated by the log handler {{org.ow2.petals.log.handler.PetalsFileHandler}} or {{org.ow2.petals.log.handler.PetalsPayloadDumperFileHandler}}.