miniLogger is a very small (4 classes and a 10KB
jar) and easy to use logger. It uses a logging API
that is a subset of JDK 1.4 logging but works on
all Java 2 versions. It has been tested on
Windows, Solaris, IRIX, and Linux for versions 1.2
and 1.3 of the Sun JDK. It supports logger control
from the command line. Logger names are
hierarchical separated by dots, and selecting any
name automatically selects all names below. If
logger_name is an empty string, it will affect all
loggers. The loggers and level options are
evaluated from left to right. It prints the thread
name, source file name, and number line by
default, and output can be redirected from
System.err to file or any PrintStream. Finally,
the logger hierarchy can easily mirror a
package/class hierarchy or can be arbitrarily
defined by the user.