Package ch.qos.logback.classic.pattern
Class NamedConverter
java.lang.Object
ch.qos.logback.core.pattern.Converter<E>
ch.qos.logback.core.pattern.FormattingConverter<E>
ch.qos.logback.core.pattern.DynamicConverter<ILoggingEvent>
ch.qos.logback.classic.pattern.ClassicConverter
ch.qos.logback.classic.pattern.NamedConverter
- All Implemented Interfaces:
ContextAware,LifeCycle
- Direct Known Subclasses:
ClassOfCallerConverter,LoggerConverter
-
Field Summary
Fields inherited from class ch.qos.logback.core.pattern.DynamicConverter
started -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(ILoggingEvent event)protected abstract StringgetFullyQualifiedName(ILoggingEvent event)Gets fully qualified name from event.voidstart()Methods inherited from class ch.qos.logback.core.pattern.DynamicConverter
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getFirstOption, getOptionList, isStarted, setContext, setOptionList, stopMethods inherited from class ch.qos.logback.core.pattern.FormattingConverter
getFormattingInfo, setFormattingInfo, write
-
Constructor Details
-
NamedConverter
public NamedConverter()
-
-
Method Details
-
getFullyQualifiedName
Gets fully qualified name from event.- Parameters:
event- The LoggingEvent to process, cannot not be null.- Returns:
- name, must not be null.
-
start
public void start()- Specified by:
startin interfaceLifeCycle- Overrides:
startin classDynamicConverter<ILoggingEvent>
-
convert
- Specified by:
convertin classConverter<ILoggingEvent>
-