- java.lang.Object
-
- de.codecamp.tracer.AbstractTraceHandler
-
- de.codecamp.tracer.handlers.JclLoggingTraceHandler
-
- All Implemented Interfaces:
TraceHandler
public class JclLoggingTraceHandler extends AbstractTraceHandler
ATraceHandlerlogging with Apache Commons Logging. Also suitable when using the Spring Commons Logging Bridge (spring-jcl).
-
-
Constructor Summary
Constructors Constructor Description JclLoggingTraceHandler()JclLoggingTraceHandler(String loggerName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(Trace trace)Handles the given fully completed trace.voidsetFormatter(TraceFormatter formatter)Sets the formatter used when logging.-
Methods inherited from class de.codecamp.tracer.AbstractTraceHandler
containsWarnings, traceHierarchyStream
-
-
-
-
Constructor Detail
-
JclLoggingTraceHandler
public JclLoggingTraceHandler()
-
JclLoggingTraceHandler
public JclLoggingTraceHandler(String loggerName)
-
-
Method Detail
-
setFormatter
public void setFormatter(TraceFormatter formatter)
Sets the formatter used when logging. Only relevant on the root session.- Parameters:
formatter- the formatter
-
handle
public void handle(Trace trace)
Description copied from interface:TraceHandlerHandles the given fully completed trace.- Parameters:
trace- the fully completed trace (a root trace of a root context)
-
-