public final class FileTracerLog4jTee extends FileTracerLogTee
FileTracer
.AbstractTracer.Exception
tracer
VERSION
Constructor and Description |
---|
FileTracerLog4jTee(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
adapt(LogLevel logLevel,
String message,
Class clazz)
Routes the given information to the log4j system.
|
protected void |
adapt(LogLevel logLevel,
Throwable throwable,
Class clazz)
Routes the given information to the log4j system.
|
protected org.apache.log4j.Level |
convertToLog4jLevel(LogLevel logLevel)
Translates the native
LogLevel to a log4j level. |
TraceMethod |
entry(String methodSignature)
Deprecated.
|
TraceMethod |
entry(String returnType,
Class clazz,
String methodSignature)
Calls the base implementation and routes to the log4j system.
|
TraceMethod |
entry(String returnType,
Object object,
String methodSignature)
Calls the base implementation and routes to the log4j system.
|
TraceMethod |
wayout()
Calls the base implementation and routes to the log4j system.
|
getLogDirPath, setLogDirPath
close, getBufferSize, getName, getSyncObject, initCurrentTracingContext, initCurrentTracingContext, isAutoflush, isOpened, logException, logMessage, open, out, readConfiguration, setAutoflush, setBufferSize
clearCurrentTracingContext, formatStreamErrorState, formatVersionInfo, getBufferedOutputStream, getNullPrintStream, getThreadMap, getTracePrintStream, out, setBufferedOutputStream, setOpened, setTracePrintStream, substitute
public FileTracerLog4jTee(String name)
protected org.apache.log4j.Level convertToLog4jLevel(LogLevel logLevel)
LogLevel
to a log4j level.logLevel
- the desired levelprotected void adapt(LogLevel logLevel, String message, Class clazz)
adapt
in class DebugLogTee<FileTracer>
logLevel
- the to be translated LogLevelmessage
- the actual messageclazz
- the class context of the messageprotected void adapt(LogLevel logLevel, Throwable throwable, Class clazz)
adapt
in class DebugLogTee<FileTracer>
logLevel
- the to be translated LogLevelthrowable
- references the to be logged infoclazz
- the class context of the message@Deprecated public TraceMethod entry(String methodSignature)
entry
in class DebugLogTee<FileTracer>
methodSignature
- the signature of the method as string representationpublic TraceMethod entry(String returnType, Object object, String methodSignature)
entry
in class DebugLogTee<FileTracer>
returnType
- the return type of the method as string representationobject
- the object that owns the methodmethodSignature
- the remaining method signature (without return type) inclusive parameter as string representationpublic TraceMethod entry(String returnType, Class clazz, String methodSignature)
entry
in class DebugLogTee<FileTracer>
returnType
- the return type of the method as string representationclazz
- the class to which that method belongmethodSignature
- the remaining method signature (without return type) inclusive parameter as string representationpublic TraceMethod wayout()
wayout
in class DebugLogTee<FileTracer>
Copyright © 2014 Christof Reichardt. All rights reserved. (Build: 26-May-2014)