Top Description Fields Constructors Methods
ch.qos.logback.classic.pattern

public Class CallerDataConverter

extends ClassicConverter
Class Inheritance
Imports
java.util.ArrayList, .List, .Map, ch.qos.logback.classic.spi.CallerData, .ILoggingEvent, ch.qos.logback.core.Context, .CoreConstants, ch.qos.logback.core.boolex.EvaluationException, .EventEvaluator, ch.qos.logback.core.status.ErrorStatus

This converter outputs caller data depending on depth or depth range and marker data.
Author
Ceki Gulcu

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
private int
private int
pack-priv int
pack-priv List<EventEvaluator<ILoggingEvent>>
pack-priv final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
private void
public String
convert(ILoggingEvent le)

Implements abstract ch.qos.logback.core.pattern.Converter.convert.

The convert method is responsible for extracting data from the event and storing it for later use by the write method.
protected String
protected String
private boolean
isRange(String depthStr)

private String[]
splitRange(String depthStr)

public void
start()

Overrides ch.qos.logback.core.pattern.DynamicConverter.start.

Implements ch.qos.logback.core.spi.LifeCycle.start.

Components that depend on options passed during configuration can override this method in order to make appropriate use of those options.

Field Detail

DEFAULT_CALLER_LINE_PREFIXback to summary
public static final String DEFAULT_CALLER_LINE_PREFIX
DEFAULT_RANGE_DELIMITERback to summary
public static final String DEFAULT_RANGE_DELIMITER
depthEndback to summary
private int depthEnd
depthStartback to summary
private int depthStart
errorCountback to summary
pack-priv int errorCount
evaluatorListback to summary
pack-priv List<EventEvaluator<ILoggingEvent>> evaluatorList
MAX_ERROR_COUNTback to summary
pack-priv final int MAX_ERROR_COUNT

Constructor Detail

CallerDataConverterback to summary
public CallerDataConverter()

Method Detail

addEvaluatorback to summary
private void addEvaluator(EventEvaluator<ILoggingEvent> ee)
checkRangeback to summary
private void checkRange()
convertback to summary
public String convert(ILoggingEvent le)

Implements abstract ch.qos.logback.core.pattern.Converter.convert.

Doc from ch.qos.logback.core.pattern.Converter.convert.

The convert method is responsible for extracting data from the event and storing it for later use by the write method.

getCallerLinePrefixback to summary
protected String getCallerLinePrefix()
getDefaultRangeDelimiterback to summary
protected String getDefaultRangeDelimiter()
isRangeback to summary
private boolean isRange(String depthStr)
splitRangeback to summary
private String[] splitRange(String depthStr)
startback to summary
public void start()

Overrides ch.qos.logback.core.pattern.DynamicConverter.start.

Implements ch.qos.logback.core.spi.LifeCycle.start.

Doc from ch.qos.logback.core.pattern.DynamicConverter.start.

Components that depend on options passed during configuration can override this method in order to make appropriate use of those options. For simpler components, the trivial implementation found in this abstract class will be sufficient.

Annotations
@SuppressWarnings:unchecked