Logging in PETALS

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

Changes (4)

View Page History
h2. Splitting log files

Petals ESB allow to split its log records into a log files hierarchy. This is done thanks to the Petals file handler '{{org.ow2.petals.log.handler.PetalsFileHandler}}' which can redirect log records to separate files according to their nature:
* if the log record is generated into a process activity context, it is redirected in the log file dedicated to the process instance,
* otherwise, the log record is sent into the global log file.
h2. Debuging process execution

In the previous paragraph, you see how to get traces about process instance executions. For a debugging or replaying purpose, it is interresting to get the content of messages exchanged. This is possible using another Petals file log handler: {{org.ow2.petals.log.handler.PetalsPayloadDumperFileHandler}} based on the previous file log handler {{org.ow2.petals.log.handler.PetalsFileHandler}}.

The content of the messages are dumped in the log files hierarchy defined [above|#log_file_hierarchy] in the directory dedicated to the current process instance. One dump file is created for each message sent or received containing its XML payload. The path of the dump file is logged, if possible as a relative path to {{basedir}}, in the MONIT trace through a dedicated field: {{payloadContentDumpFile}}.

The Petals file log handler {{org.ow2.petals.log.handler.PetalsPayloadDumperFileHandler}} extends the configuration of {{org.ow2.petals.log.handler.PetalsFileHandler}} the following parameters:
|| Property || Default value || Description ||
| {{xxx.dump-basedir}} | {{$\{petals.log.dir}/flow-monitoring}} | The name of a root directory that will contain all dump files organized by flow using an intermediate sub directory associated to the flow |

This Petals file handler has the same configuration properties than its [parent|#petals_file_handler].