public class SyslogStartConverter extends ClassicConverter
| Modifier and Type | Field and Description |
|---|---|
private java.util.Calendar |
calendar |
(package private) int |
facility |
(package private) long |
lastTimestamp |
(package private) java.lang.String |
localHostName |
(package private) java.text.SimpleDateFormat |
simpleMonthFormat |
(package private) java.text.SimpleDateFormat |
simpleTimeFormat |
(package private) java.lang.String |
timesmapStr |
started| Constructor and Description |
|---|
SyslogStartConverter() |
| Modifier and Type | Method and Description |
|---|---|
(package private) java.lang.String |
computeTimeStampString(long now) |
java.lang.String |
convert(ILoggingEvent event)
The convert method is responsible for extracting data from the event and
storing it for later use by the write method.
|
java.lang.String |
getLocalHostname()
This method gets the network name of the machine we are running on.
|
void |
start()
Components that depend on options passed during configuration can override
this method in order to make appropriate use of those options.
|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getFirstOption, getOptionList, isStarted, setContext, setOptionList, stopgetFormattingInfo, setFormattingInfo, writelong lastTimestamp
java.lang.String timesmapStr
java.text.SimpleDateFormat simpleMonthFormat
java.text.SimpleDateFormat simpleTimeFormat
private final java.util.Calendar calendar
java.lang.String localHostName
int facility
public void start()
DynamicConverterstart in interface LifeCyclestart in class DynamicConverter<ILoggingEvent>public java.lang.String convert(ILoggingEvent event)
Converterconvert in class Converter<ILoggingEvent>public java.lang.String getLocalHostname()
java.lang.String computeTimeStampString(long now)