Logging in Petals

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

Changes (1)

View Page History
{note}An issue JIRA already exists to dump the whole content of messages, including properties and attachments: {jira:PETALSESBCONT-228}{note}

h2. Performances

Performances decrease when activating MONIT log level, and mainly if the log handler {{org.ow2.petals.log.handler.PetalsPayloadDumperFileHandler}} is enabled. To reduce the performance impact, you can apply an asynchronous pattern, for example using the log handler {{java.util.logging.MemoryHandler}} linked to {{org.ow2.petals.log.handler.PetalsFileHandler}}:
{code}
handlers=java.util.logging.ConsoleHandler, java.util.logging.MemoryHandler

java.util.logging.MemoryHandler.level=FINEST
java.util.logging.MemoryHandler.size=1000
java.util.logging.MemoryHandler.target=org.ow2.petals.log.handler.PetalsFileHandler
{code}

h2. Using your own log handler