Package ch.qos.logback.classic.pattern
Class SyslogStartConverter
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.SyslogStartConverter
- All Implemented Interfaces:
ContextAware
,LifeCycle
-
Field Summary
Fields inherited from class ch.qos.logback.core.pattern.DynamicConverter
started
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(ILoggingEvent event) This method gets the network name of the machine we are running on.void
start()
Methods inherited from class ch.qos.logback.core.pattern.DynamicConverter
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getFirstOption, getOptionList, isStarted, setContext, setOptionList, stop
Methods inherited from class ch.qos.logback.core.pattern.FormattingConverter
getFormattingInfo, setFormattingInfo, write
-
Constructor Details
-
SyslogStartConverter
public SyslogStartConverter()
-
-
Method Details
-
start
public void start()- Specified by:
start
in interfaceLifeCycle
- Overrides:
start
in classDynamicConverter<ILoggingEvent>
-
convert
- Specified by:
convert
in classConverter<ILoggingEvent>
-
getLocalHostname
This method gets the network name of the machine we are running on. Returns "UNKNOWN_LOCALHOST" in the unlikely case where the host name cannot be found.- Returns:
- String the name of the local host
-