julsimple — make java.util.logging a bit easier
There is a reason why so many logging frameworks exist on top of or
to replace java.util.logging. It has a few quirks which can be
really annoying.
Singular configured instances
Several aspects are configurable only by using a class name in the
configuration file and end up in a call to a parameterless constructor. This
means that exactly only one instance of the respective class is
configurable. Examples are FileHandler
or ConsoleHandler.
Once you know the way out, it is trivial: Define empty-bodied subclasses of the respective class and use the subclass name in the configuration.
No two SimpleFormatters, not even as subclasses
The exception to the above workaround is Simpleformatter, as
even subclass instances will get configured by
the "Simpleformatter." config prefix.
This is where ConfigurableFormatter can
help. It is basically a code copy of Simpleformatter. It
is configurable via its name and if you need more than one, the empty
bodied subclass approach can be used now too.
No logfiles with date based names
The FileHandler provided allows to switch over to
a new log file only by the size of the file. This package provides a simple
date based file handler: DatedFileHandler.