The generators
A generator is a logical combination of a handler and a formatter. The definition of a generator in XML looks like this:
<generator name="CoreGenerator">
<formatter class="DefaultFormatter"/>
<handler class="FileHandler">
<parameter name="file" value="${system:java.io.tmpdir}/jZonic.log" />
</handler>
</generator>
The different parts are described below.
Formatter
The formatter defines which formatter will be used by the generator. If you use one the formatters included in jLo then you do not have to define the full qualified name of the class. But if you want to use your own formatter then use the FQN like this:
<formatter class="com.foo.logging.SpecialFormatter"/>
Handler
The handler is responsible for the physical log processing. Every handler can have a different set of parameters. Please refer to
AllHandlers to see which parameters are needed by a specific handler. Every value of such a parameter supports the use of variables. These variables are described
hereIf you use one of the included handlers then you do not need to define the full
qualified name of the class. Otherwise you must define the FQN like this:
<handler class="com.foo.logging.SpecialHandler"/>