java.lang.Object
de.codecamp.tracer.AbstractTraceHandler
de.codecamp.tracer.handlers.Slf4jLoggingTraceHandler
- All Implemented Interfaces:
TraceHandler
A
TraceHandler logging with SLF4J.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringthe name of themarkerused when logging the profiler session -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidHandles the given fully completed trace.voidsetFormatter(TraceFormatter formatter) Sets the formatter used when logging.Methods inherited from class de.codecamp.tracer.AbstractTraceHandler
containsWarnings, traceHierarchyStream
-
Field Details
-
MARKER_NAME
the name of themarkerused when logging the profiler session- See Also:
-
-
Constructor Details
-
Slf4jLoggingTraceHandler
public Slf4jLoggingTraceHandler() -
Slf4jLoggingTraceHandler
-
-
Method Details
-
setFormatter
Sets the formatter used when logging. Only relevant on the root session.- Parameters:
formatter- the formatter
-
handle
Description copied from interface:TraceHandlerHandles the given fully completed trace.- Parameters:
trace- the fully completed trace (a root trace of a root context)
-