Logpipes
What is it
A LogPipe is like a pipe under Linux. Every log request no matter to which logger or channel is piped through every LogPipe that is defined. In combination with a filter this can help to trace problems. Since jLo will reload a configuration when the file has changed this can used during runtime to find problems.
How to use it
First here is an example how to define a pipe:
<pipe>
<generator-name>PipeGenerator</generator-name>
</pipe>
Here is another example in combination with a filter:
<pipe>
<generator-name>PipeGenerator</generator-name>
<filter-name>ExceptionFilter</filter-name>
</pipe>
<filter name="ExceptionFilter">
<class>TextFilter</class>
<parameter name="expression" value="Exception"/>
</filter>
This LogPipe will use the TextFiler and only let through messages that contains the word Exception.