Package org.jfree.base.log
Class DefaultLog
- java.lang.Object
-
- org.jfree.util.Log
-
- org.jfree.base.log.DefaultLog
-
public class DefaultLog extends Log
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
Fields Modifier and Type Field Description private static PrintStreamLogTargetDEFAULT_LOG_TARGETThe default log target.private static DefaultLogdefaultLogInstanceThe default log instance.
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultLog()Creates a new log.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTarget(LogTarget target)Adds a log target to this facility.static DefaultLoggetDefaultLog()Returns the default log.voidinit()Initializes the log system after the log module was loaded and a log target was defined.static voidinstallDefaultLog()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 Detail
-
DEFAULT_LOG_TARGET
private static final PrintStreamLogTarget DEFAULT_LOG_TARGET
The default log target.
-
defaultLogInstance
private static final DefaultLog defaultLogInstance
The default log instance.
-
-
Method Detail
-
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
public void addTarget(LogTarget target)
Adds a log target to this facility. Log targets get informed, via the LogTarget interface, whenever a message is logged with this class.
-
getDefaultLog
public static DefaultLog getDefaultLog()
Returns the default log.- Returns:
- The default log.
-
installDefaultLog
public static void installDefaultLog()
Makes this implementation the default instance.
-
-