public class VoidLogger extends Logger
Logger.LogLevel, Logger.OSThread
Constructor and Description |
---|
VoidLogger() |
Modifier and Type | Method and Description |
---|---|
long |
anyFlags() |
Logger.LogLevel |
getThresholdNew() |
void |
instanceRegisterLogThresholdCallback(LogThresholdCallback ltc)
Register a log threshold callback with this specific logger, not with
the global logger.
|
boolean |
instanceShouldLog(Logger.LogLevel priority,
java.lang.Class<?> c)
Should this specific Logger object log a message concerning the
given class with the given priority.
|
boolean |
instanceShouldLog(Logger.LogLevel prio,
java.lang.Object o)
Should this specific Logger object log a message concerning the
given object with the given priority.
|
void |
instanceUnregisterLogThresholdCallback(LogThresholdCallback ltc)
Unregister a log threshold callback with this specific logger.
|
void |
log(java.lang.Class<?> c,
java.lang.String message,
Logger.LogLevel priority)
Log a message from static code.
|
void |
log(java.lang.Class<?> c,
java.lang.String message,
java.lang.Throwable e,
Logger.LogLevel priority)
Log a message from static code.
|
void |
log(java.lang.Object o,
java.lang.Class<?> source,
java.lang.String message,
java.lang.Throwable e,
Logger.LogLevel priority)
Log a message
|
void |
log(java.lang.Object source,
java.lang.String message,
Logger.LogLevel priority)
Log a message.
|
void |
log(java.lang.Object o,
java.lang.String message,
java.lang.Throwable e,
Logger.LogLevel priority)
Log a message with an exception.
|
long |
minFlags() |
long |
notFlags() |
void |
setDetailedThresholds(java.lang.String details)
Set the detailed list of thresholds.
|
void |
setThreshold(Logger.LogLevel thresh)
Changes the priority threshold.
|
void |
setThreshold(java.lang.String symbolicThreshold)
Changes the priority threshold.
|
debug, debug, debug, debug, destroyChainIfEmpty, error, error, error, error, fatal, getChain, getThreshold, globalAddHook, globalGetThreshold, globalGetThresholdNew, globalRemoveHook, globalSetThreshold, globalSetThreshold, instanceShouldLog, instanceShouldLog, log, log, log, log, log, logStatic, logStatic, logStatic, minor, minor, minor, minor, normal, normal, normal, normal, registerClass, registerLogThresholdCallback, setThreshold, setupChain, setupStdoutLogging, setupStdoutLogging, shouldLog, shouldLog, shouldLog, shouldLog, unregisterLogThresholdCallback, warning, warning, warning, warning
public void log(java.lang.Object o, java.lang.Class<?> source, java.lang.String message, java.lang.Throwable e, Logger.LogLevel priority)
Logger
log
in class Logger
o
- The object where this message was generated.source
- The class where this message was generated.message
- A clear and verbose message describing the evente
- Logs this exception with the message.priority
- The priority of the mesage, one of LogLevel.ERROR,
LogLevel.NORMAL, LogLevel.MINOR, or LogLevel.DEBUG.public void log(java.lang.Object source, java.lang.String message, Logger.LogLevel priority)
Logger
public void log(java.lang.Object o, java.lang.String message, java.lang.Throwable e, Logger.LogLevel priority)
Logger
log
in class Logger
o
- The source object where this message was generated.message
- A clear and verbose message describing the event.e
- Logs this exception with the message.priority
- The priority of the mesage, one of LogLevel.ERROR,
LogLevel.NORMAL, LogLevel.MINOR, or LogLevel.DEBUG.Logger.log(Object o, String message, int priority)
public void log(java.lang.Class<?> c, java.lang.String message, Logger.LogLevel priority)
Logger
public void log(java.lang.Class<?> c, java.lang.String message, java.lang.Throwable e, Logger.LogLevel priority)
Logger
log
in class Logger
c
- The class where this message was generated.message
- A clear and verbose message describing the evente
- Logs this exception with the message.priority
- The priority of the mesage, one of LogLevel.ERROR,
LogLevel.NORMAL, LogLevel.MINOR, or LogLevel.DEBUG.public long minFlags()
public long notFlags()
public long anyFlags()
public boolean instanceShouldLog(Logger.LogLevel priority, java.lang.Class<?> c)
Logger
instanceShouldLog
in class Logger
public boolean instanceShouldLog(Logger.LogLevel prio, java.lang.Object o)
Logger
instanceShouldLog
in class Logger
public void setThreshold(Logger.LogLevel thresh)
Logger
setThreshold
in class Logger
thresh
- The new threshholdpublic Logger.LogLevel getThresholdNew()
getThresholdNew
in class Logger
public void setThreshold(java.lang.String symbolicThreshold)
Logger
setThreshold
in class Logger
symbolicThreshold
- The new threshhold, must be one of ERROR,NORMAL etc..public void setDetailedThresholds(java.lang.String details)
Logger
setDetailedThresholds
in class Logger
public final void instanceRegisterLogThresholdCallback(LogThresholdCallback ltc)
Logger
instanceRegisterLogThresholdCallback
in class Logger
public final void instanceUnregisterLogThresholdCallback(LogThresholdCallback ltc)
Logger
instanceUnregisterLogThresholdCallback
in class Logger