| java.lang.Object org.jfree.util.Log org.jfree.base.log.DefaultLog
DefaultLog | public class DefaultLog extends Log (Code) | | A default log implementation. The Log class defines how to create Logger-contexts
and how to forward messages to the logtargets.
author: Thomas Morgner |
Constructor Summary | |
protected | DefaultLog() Creates a new log. |
Method Summary | |
public synchronized void | addTarget(LogTarget target) Adds a log target to this facility. | public static DefaultLog | getDefaultLog() Returns the default log. | public void | init() Initializes the log system after the log module was loaded and a log target
was defined. | public static void | installDefaultLog() Makes this implementation the default instance. |
DefaultLog | protected DefaultLog()(Code) | | Creates a new log.
|
addTarget | public synchronized void addTarget(LogTarget target)(Code) | | Adds a log target to this facility. Log targets get informed, via the
LogTarget interface, whenever a message is logged with this class.
Parameters: target - the target. |
getDefaultLog | public static DefaultLog getDefaultLog()(Code) | | Returns the default log.
The default log. |
init | public void init()(Code) | | 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.
|
installDefaultLog | public static void installDefaultLog()(Code) | | Makes this implementation the default instance.
|
Methods inherited from org.jfree.util.Log | public synchronized void addTarget(LogTarget target)(Code)(Java Doc) public static LogContext createContext(Class context)(Code)(Java Doc) public static LogContext createContext(String context)(Code)(Java Doc) public static void debug(Object message)(Code)(Java Doc) public static void debug(Object message, Exception e)(Code)(Java Doc) protected static synchronized void defineLog(Log log)(Code)(Java Doc) protected void doLog(int level, Object message)(Code)(Java Doc) protected void doLog(int level, Object message, Exception e)(Code)(Java Doc) public static void error(Object message)(Code)(Java Doc) public static void error(Object message, Exception e)(Code)(Java Doc) public int getDebuglevel()(Code)(Java Doc) public static synchronized Log getInstance()(Code)(Java Doc) public LogTarget[] getTargets()(Code)(Java Doc) public static void info(Object message)(Code)(Java Doc) public static void info(Object message, Exception e)(Code)(Java Doc) public void init()(Code)(Java Doc) protected LogContext internalCreateContext(String context)(Code)(Java Doc) public static boolean isDebugEnabled()(Code)(Java Doc) public static boolean isErrorEnabled()(Code)(Java Doc) public static boolean isInfoEnabled()(Code)(Java Doc) public static boolean isWarningEnabled()(Code)(Java Doc) public static void log(int level, Object message)(Code)(Java Doc) public static void log(int level, Object message, Exception e)(Code)(Java Doc) public synchronized void removeTarget(LogTarget target)(Code)(Java Doc) public synchronized void replaceTargets(LogTarget target)(Code)(Java Doc) protected void setDebuglevel(int debuglevel)(Code)(Java Doc) public static void warn(Object message)(Code)(Java Doc) public static void warn(Object message, Exception e)(Code)(Java Doc)
|
|
|