Package org.jfree.base.log
Class DefaultLog
java.lang.Object
org.jfree.util.Log
org.jfree.base.log.DefaultLog
A default log implementation. The Log class defines how to create Logger-contexts
and how to forward messages to the logtargets.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jfree.util.Log
Log.SimpleMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final PrintStreamLogTarget
The default log target.private static final DefaultLog
The default log instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a log target to this facility.static DefaultLog
Returns the default log.void
init()
Initializes the log system after the log module was loaded and a log target was defined.static void
Makes this implementation the default instance.Methods inherited from class org.jfree.util.Log
createContext, createContext, debug, debug, defineLog, doLog, doLog, error, error, getDebuglevel, getInstance, getTargets, info, info, internalCreateContext, isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarningEnabled, log, log, removeTarget, replaceTargets, setDebuglevel, warn, warn
-
Field Details
-
DEFAULT_LOG_TARGET
The default log target. -
defaultLogInstance
The default log instance.
-
-
Constructor Details
-
DefaultLog
protected DefaultLog()Creates a new log.
-
-
Method Details
-
init
public void init()Initializes the log system after the log module was loaded and a log target was defined. This is the second step of the log initialisation. -
addTarget
Adds a log target to this facility. Log targets get informed, via the LogTarget interface, whenever a message is logged with this class. -
getDefaultLog
Returns the default log.- Returns:
- The default log.
-
installDefaultLog
public static void installDefaultLog()Makes this implementation the default instance.
-