public final class JDKLoggingRouter extends NullTracer
NullTracer redirects log messages to the core logging facilities of the Java platform,
see java.util.logging.
The LogLevels will be translated into the Levels used by loggers of the Java platform. All of the other
tracing output will be discarded.AbstractTracer.ExceptionVERSION| Constructor and Description |
|---|
JDKLoggingRouter() |
| Modifier and Type | Method and Description |
|---|---|
protected Level |
convertToJDK14Level(LogLevel logLevel)
|
void |
logException(LogLevel logLevel,
Throwable throwable,
Class clazz,
String methodName)
Calls the
Logger for the given clazz. |
void |
logMessage(LogLevel logLevel,
String message,
Class clazz,
String methodName)
Calls the
Logger for the given clazz. |
close, entry, entry, entry, initCurrentTracingContext, initCurrentTracingContext, open, out, out, readConfiguration, wayoutclearCurrentTracingContext, formatStreamErrorState, formatVersionInfo, getBufferedOutputStream, getBufferSize, getName, getNullPrintStream, getSyncObject, getThreadMap, getTracePrintStream, isAutoflush, isOpened, setAutoflush, setBufferedOutputStream, setBufferSize, setOpened, setTracePrintStream, substitutepublic void logMessage(LogLevel logLevel, String message, Class clazz, String methodName)
Logger for the given clazz.logMessage in class NullTracerlogLevel - the log levelmessage - the to be logged messageclazz - the originating classmethodName - the originating methodpublic void logException(LogLevel logLevel, Throwable throwable, Class clazz, String methodName)
Logger for the given clazz.logException in class NullTracerlogLevel - the log levelthrowable - the to be logged throwableclazz - the originating classmethodName - the name of the relevant methodCopyright © 2014. All rights reserved.