A simple logging interface abstracting logging APIs. In order to be
instantiated successfully by , classes that implement
this interface must have a constructor that takes a single String
parameter representing the "name" of this Log.LogFactory
The six logging levels used by Log are (in order):
Performance is often a logging concern. By examining the appropriate property, a component can avoid expensive operations (producing information to be logged).
For example,
if (log.isDebugEnabled()) {
... do something expensive ...
log.debug(theResult);
}
Configuration of the underlying logging system will generally be done external to the Logging APIs, through whatever mechanism is supported by that system.