public class LogstashSocketAppender
extends ch.qos.logback.core.net.SyslogAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
| Constructor and Description |
|---|
LogstashSocketAppender() |
| Modifier and Type | Method and Description |
|---|---|
ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> |
buildLayout() |
ch.qos.logback.core.net.SyslogOutputStream |
createOutputStream() |
String |
getCustomFields() |
LogstashFieldNames |
getFieldNames() |
String |
getHost() |
JsonFactoryDecorator |
getJsonFactoryDecorator() |
JsonGeneratorDecorator |
getJsonGeneratorDecorator() |
int |
getSeverityForEvent(Object eventObject) |
int |
getShortenedLoggerNameLength() |
boolean |
isIncludeCallerInfo() |
boolean |
isIncludeContext() |
boolean |
isIncludeMdc() |
void |
setCustomFields(String customFields) |
void |
setFieldNames(LogstashFieldNames fieldNames) |
void |
setHost(String host)
Just an alias for syslogHost (since that name doesn't make much sense here)
|
void |
setIncludeCallerInfo(boolean includeCallerInfo) |
void |
setIncludeContext(boolean includeContext) |
void |
setIncludeMdc(boolean includeMdc) |
void |
setJsonFactoryDecorator(JsonFactoryDecorator jsonFactoryDecorator) |
void |
setJsonGeneratorDecorator(JsonGeneratorDecorator jsonGeneratorDecorator) |
void |
setShortenedLoggerNameLength(int length) |
void |
start() |
void |
stop() |
append, facilityStringToint, getFacility, getLayout, getMaxMessageSize, getPort, getSuffixPattern, getSyslogHost, postProcess, setFacility, setLayout, setMaxMessageSize, setPort, setSuffixPattern, setSyslogHostaddFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toStringaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> buildLayout()
buildLayout in class ch.qos.logback.core.net.SyslogAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>public void start()
start in interface ch.qos.logback.core.spi.LifeCyclestart in class ch.qos.logback.core.net.SyslogAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>public void stop()
stop in interface ch.qos.logback.core.spi.LifeCyclestop in class ch.qos.logback.core.net.SyslogAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>public int getSeverityForEvent(Object eventObject)
getSeverityForEvent in class ch.qos.logback.core.net.SyslogAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>public String getHost()
public void setHost(String host)
host - public void setCustomFields(String customFields)
public String getCustomFields()
public boolean isIncludeCallerInfo()
public void setIncludeCallerInfo(boolean includeCallerInfo)
public LogstashFieldNames getFieldNames()
public void setFieldNames(LogstashFieldNames fieldNames)
public boolean isIncludeMdc()
public void setIncludeMdc(boolean includeMdc)
public boolean isIncludeContext()
public void setIncludeContext(boolean includeContext)
public int getShortenedLoggerNameLength()
public void setShortenedLoggerNameLength(int length)
public JsonFactoryDecorator getJsonFactoryDecorator()
public void setJsonFactoryDecorator(JsonFactoryDecorator jsonFactoryDecorator)
public JsonGeneratorDecorator getJsonGeneratorDecorator()
public void setJsonGeneratorDecorator(JsonGeneratorDecorator jsonGeneratorDecorator)
public ch.qos.logback.core.net.SyslogOutputStream createOutputStream()
throws UnknownHostException,
SocketException
createOutputStream in class ch.qos.logback.core.net.SyslogAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>UnknownHostExceptionSocketExceptionCopyright © 2014. All Rights Reserved.