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, warningpublic void log(java.lang.Object o,
java.lang.Class<?> source,
java.lang.String message,
java.lang.Throwable e,
Logger.LogLevel priority)
Loggerlog in class Loggero - 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)
Loggerpublic void log(java.lang.Object o,
java.lang.String message,
java.lang.Throwable e,
Logger.LogLevel priority)
Loggerlog in class Loggero - 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)
Loggerpublic void log(java.lang.Class<?> c,
java.lang.String message,
java.lang.Throwable e,
Logger.LogLevel priority)
Loggerlog in class Loggerc - 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)
LoggerinstanceShouldLog in class Loggerpublic boolean instanceShouldLog(Logger.LogLevel prio, java.lang.Object o)
LoggerinstanceShouldLog in class Loggerpublic void setThreshold(Logger.LogLevel thresh)
LoggersetThreshold in class Loggerthresh - The new threshholdpublic Logger.LogLevel getThresholdNew()
getThresholdNew in class Loggerpublic void setThreshold(java.lang.String symbolicThreshold)
LoggersetThreshold in class LoggersymbolicThreshold - The new threshhold, must be one of ERROR,NORMAL etc..public void setDetailedThresholds(java.lang.String details)
LoggersetDetailedThresholds in class Loggerpublic final void instanceRegisterLogThresholdCallback(LogThresholdCallback ltc)
LoggerinstanceRegisterLogThresholdCallback in class Loggerpublic final void instanceUnregisterLogThresholdCallback(LogThresholdCallback ltc)
LoggerinstanceUnregisterLogThresholdCallback in class Logger