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
* otherwise, the log record is sent into the global log file.

{anchor:log_file_hierarchy}
The default log files hierarchy is the following one:
* basedir
** petals.log: The global log file in which log records that are not generated into a process activity context are logged,
* {{flows-subdir}}: The name of the directory contained in the {{basedir}} where log files of log records associated to process activities are written. Default value: {{flow-monitoring}},
* {{logFilename}}: The name of log files. Default value: {{petals.log}}.

{anchor:petals_dumper_file_handler}
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 handler: {{org.ow2.petals.log.handler.PetalsPayloadDumperFileHandler}} based on the previous file 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.

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