Class | Description |
---|---|
JavaUtilLoggingTextFormatter |
Implements a log formatter for the java.util.logging
infrastructure that formats each non-exception log record as a simple,
single-line text string.
|
Logger |
Logger wraps the
Jakarta Commons Logging
API and provides a slightly simpler, but similar, interface.
|
Enum | Description |
---|---|
LogLevel |
Encodes legal logging level constants for the
Logger class. |
org.clapper.util.logging - Logging Classes.
This package contains logging-related classes. The Logger class provides a front-end to the Jakarta Commons Logging API, insulating calling applications from the specifics of the underlying logging layer, while providing a simpler, thinner interface than Commons Logging. Other classes, such as JavaUtilLoggingTextFormatter, provide useful formatters for the java.util.logging framework.
WARNING: If your application installs its own class loader (e.g., as the thread context class loader), you may have problems with both Jakarta Commons Logging and java.util.logging (which Jakarta Commons Logging uses as its default logging implementation).
java -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger -Dlog4j.configuration=file:/path/to/log4j-debug.properties