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 |
|---|---|
void |
addExcludeMdcKeyName(String excludedMdcKeyName) |
void |
addIncludeMdcKeyName(String includedMdcKeyName) |
void |
addProvider(JsonProvider<ch.qos.logback.classic.spi.ILoggingEvent> provider) |
ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> |
buildLayout() |
ch.qos.logback.core.net.SyslogOutputStream |
createOutputStream() |
String |
getCustomFields() |
List<String> |
getExcludeMdcKeyNames() |
LogstashFieldNames |
getFieldNames() |
String |
getHost() |
List<String> |
getIncludeMdcKeyNames() |
JsonFactoryDecorator |
getJsonFactoryDecorator() |
JsonGeneratorDecorator |
getJsonGeneratorDecorator() |
ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> |
getPrefix() |
int |
getSeverityForEvent(Object eventObject) |
int |
getShortenedLoggerNameLength() |
ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> |
getSuffix() |
ch.qos.logback.classic.pattern.ThrowableHandlingConverter |
getThrowableConverter() |
String |
getTimeZone() |
boolean |
isIncludeCallerData() |
boolean |
isIncludeCallerInfo()
Deprecated.
use
isIncludeCallerData() (to use the same name that logback uses) |
boolean |
isIncludeContext() |
boolean |
isIncludeMdc() |
void |
setCustomFields(String customFields) |
void |
setExcludeMdcKeyNames(List<String> excludeMdcKeyNames) |
void |
setFieldNames(LogstashFieldNames fieldNames) |
void |
setHost(String host)
Just an alias for syslogHost (since that name doesn't make much sense here)
|
void |
setIncludeCallerData(boolean includeCallerData) |
void |
setIncludeCallerInfo(boolean includeCallerInfo)
Deprecated.
use
setIncludeCallerData(boolean) (to use the same name that logback uses) |
void |
setIncludeContext(boolean includeContext) |
void |
setIncludeMdc(boolean includeMdc) |
void |
setIncludeMdcKeyNames(List<String> includeMdcKeyNames) |
void |
setJsonFactoryDecorator(JsonFactoryDecorator jsonFactoryDecorator) |
void |
setJsonGeneratorDecorator(JsonGeneratorDecorator jsonGeneratorDecorator) |
void |
setPrefix(ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> prefix) |
void |
setShortenedLoggerNameLength(int length) |
void |
setSuffix(ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> suffix) |
void |
setThrowableConverter(ch.qos.logback.classic.pattern.ThrowableHandlingConverter throwableConverter) |
void |
setTimeZone(String timeZoneId) |
void |
start() |
void |
stop() |
append, facilityStringToint, getCharset, getFacility, getLayout, getMaxMessageSize, getPort, getSuffixPattern, getSyslogHost, postProcess, setCharset, 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 addProvider(JsonProvider<ch.qos.logback.classic.spi.ILoggingEvent> provider)
public void setCustomFields(String customFields)
public String getCustomFields()
public boolean isIncludeCallerData()
public void setIncludeCallerData(boolean includeCallerData)
@Deprecated public boolean isIncludeCallerInfo()
isIncludeCallerData() (to use the same name that logback uses)@Deprecated public void setIncludeCallerInfo(boolean includeCallerInfo)
setIncludeCallerData(boolean) (to use the same name that logback uses)public LogstashFieldNames getFieldNames()
public void setFieldNames(LogstashFieldNames fieldNames)
public boolean isIncludeMdc()
public void setIncludeMdc(boolean includeMdc)
public void addIncludeMdcKeyName(String includedMdcKeyName)
public void addExcludeMdcKeyName(String excludedMdcKeyName)
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 String getTimeZone()
public void setTimeZone(String timeZoneId)
public ch.qos.logback.classic.pattern.ThrowableHandlingConverter getThrowableConverter()
public void setThrowableConverter(ch.qos.logback.classic.pattern.ThrowableHandlingConverter throwableConverter)
public ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> getPrefix()
public void setPrefix(ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> prefix)
public ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> getSuffix()
public void setSuffix(ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> suffix)
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 © 2015. All Rights Reserved.