using thread based logging - each thread can have it's own LogTarget
(this is for the Desktop)
- Author:
- jeff@shiftone.org (Jeff Drost)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggerFactory
public LoggerFactory()
initialize
public static void initialize()
getLogger
public static Logger getLogger(java.lang.Class klass)
getLogger
public static Logger getLogger(java.lang.String topic)
getLevelFromName
public static int getLevelFromName(java.lang.String levelName)
setLevel
public static void setLevel(int level)
getLevel
public static int getLevel()
disableLogging
public static void disableLogging()
enableThreadBasedLogging
public static void enableThreadBasedLogging()
enableSystemOutLogging
public static void enableSystemOutLogging()
setLogTarget
public static void setLogTarget(LogTarget logTarget)
getLogTarget
public static LogTarget getLogTarget()
redirectLogging
public static void redirectLogging(java.io.PrintWriter printWriter)
executeInThreadScope
public static void executeInThreadScope(LogTarget newTarget,
java.lang.Runnable runnable)
- this will only have any effect on logging if the current mode is using
the ThreadLocalLogTarget - meaning a call to enableDesktopLoggingMode was
made.