Formatter
A formatter is called by the LogProcessor when the log-request is processed. The formatter gets the LogRecord which contains several information like the message that should be logged or the name of the class that called the logger.
jLo supports the following Formatter:
PlainFormatter
This is the simlest formatter.
format:
[target] message
example:
[INFO] hello world
SimpleFormatter
This formatter also includes the date and time.
format:
yyyy/MM/dd HH:mm:ss - [target] message
example:
2003/07/14 17:00:23 - [INFO] hello world
DefaultFormatter
The DefaultFormatter includes the date and time, the target and classname and the message itself. If there is an exception set then the entire stacktrace will be written out as well.
format:
yyyy/MM/dd HH:mm:ss - [target] [classname] message
example:
2003/07/14 17:00:23 - [INFO] [org.foo.app] hello world
~DefinedFormatter
This formatter is explained in more details
here