public final class JDKLoggingRouter extends NullTracer
NullTracer
redirects log messages to the core logging facilities of the Java platform,
see java.util.logging.
The LogLevel
s will be translated into the Level
s used by loggers of the Java platform. All of the other
tracing output will be discarded.AbstractTracer.Exception
VERSION
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, wayout
clearCurrentTracingContext, formatStreamErrorState, formatVersionInfo, getBufferedOutputStream, getBufferSize, getName, getNullPrintStream, getSyncObject, getThreadMap, getTracePrintStream, isAutoflush, isOpened, setAutoflush, setBufferedOutputStream, setBufferSize, setOpened, setTracePrintStream, substitute
public void logMessage(LogLevel logLevel, String message, Class clazz, String methodName)
Logger
for the given clazz.logMessage
in class NullTracer
logLevel
- 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 NullTracer
logLevel
- the log levelthrowable
- the to be logged throwableclazz
- the originating classCopyright © 2014 Christof Reichardt. All rights reserved. (Build: 26-May-2014)