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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(ILoggingEvent event) This method gets the network name of the machine we are running on.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
-
SyslogStartConverter
public SyslogStartConverter()
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceLifeCycle- Overrides:
startin classDynamicConverter<ILoggingEvent>
-
convert
- Specified by:
convertin 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
-