LogstashUdpSocketAppender
with a LogstashLayout
instead.@Deprecated public class LogstashSocketAppender extends LogstashUdpSocketAppender
LogstashUdpSocketAppender
that uses a LogstashLayout
and allows direct configuration of the LogstashLayout
properties,
rather than configuring a LogstashLayout
separately.suffixPattern
name, started
context
Constructor and Description |
---|
LogstashSocketAppender()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addExcludeMdcKeyName(String excludedMdcKeyName)
Deprecated.
|
void |
addIncludeMdcKeyName(String includedMdcKeyName)
Deprecated.
|
void |
addProvider(JsonProvider<ILoggingEvent> provider)
Deprecated.
|
String |
getCustomFields()
Deprecated.
|
List<String> |
getExcludeMdcKeyNames()
Deprecated.
|
LogstashFieldNames |
getFieldNames()
Deprecated.
|
List<String> |
getIncludeMdcKeyNames()
Deprecated.
|
JsonFactoryDecorator |
getJsonFactoryDecorator()
Deprecated.
|
JsonGeneratorDecorator |
getJsonGeneratorDecorator()
Deprecated.
|
LogstashLayout |
getLayout()
Deprecated.
|
String |
getLineSeparator()
Deprecated.
|
String |
getNonStructuredArgumentsFieldPrefix()
Deprecated.
|
Layout<ILoggingEvent> |
getPrefix()
Deprecated.
|
int |
getShortenedLoggerNameLength()
Deprecated.
|
Layout<ILoggingEvent> |
getSuffix()
Deprecated.
|
ThrowableHandlingConverter |
getThrowableConverter()
Deprecated.
|
String |
getTimeZone()
Deprecated.
|
boolean |
isIncludeCallerData()
Deprecated.
|
boolean |
isIncludeCallerInfo()
Deprecated.
use
isIncludeCallerData() (to use the same name that logback uses) |
boolean |
isIncludeContext()
Deprecated.
|
boolean |
isIncludeMdc()
Deprecated.
|
boolean |
isIncludeNonStructuredArguments()
Deprecated.
|
boolean |
isIncludeStructuredArguments()
Deprecated.
|
void |
setCustomFields(String customFields)
Deprecated.
|
void |
setExcludeMdcKeyNames(List<String> excludeMdcKeyNames)
Deprecated.
|
void |
setFieldNames(LogstashFieldNames fieldNames)
Deprecated.
|
void |
setFindAndRegisterJacksonModules(boolean findAndRegisterJacksonModules)
Deprecated.
|
void |
setIncludeCallerData(boolean includeCallerData)
Deprecated.
|
void |
setIncludeCallerInfo(boolean includeCallerInfo)
Deprecated.
use
setIncludeCallerData(boolean) (to use the same name that logback uses) |
void |
setIncludeContext(boolean includeContext)
Deprecated.
|
void |
setIncludeMdc(boolean includeMdc)
Deprecated.
|
void |
setIncludeMdcKeyNames(List<String> includeMdcKeyNames)
Deprecated.
|
void |
setIncludeNonStructuredArguments(boolean includeNonStructuredArguments)
Deprecated.
|
void |
setIncludeStructuredArguments(boolean includeStructuredArguments)
Deprecated.
|
void |
setJsonFactoryDecorator(JsonFactoryDecorator jsonFactoryDecorator)
Deprecated.
|
void |
setJsonGeneratorDecorator(JsonGeneratorDecorator jsonGeneratorDecorator)
Deprecated.
|
void |
setLayout(Layout<ILoggingEvent> layout)
Deprecated.
|
void |
setLineSeparator(String lineSeparator)
Deprecated.
|
void |
setNonStructuredArgumentsFieldPrefix(String nonStructuredArgumentsFieldPrefix)
Deprecated.
|
void |
setPrefix(Layout<ILoggingEvent> prefix)
Deprecated.
|
void |
setShortenedLoggerNameLength(int length)
Deprecated.
|
void |
setSuffix(Layout<ILoggingEvent> suffix)
Deprecated.
|
void |
setThrowableConverter(ThrowableHandlingConverter throwableConverter)
Deprecated.
|
void |
setTimeZone(String timeZoneId)
Deprecated.
|
addListener, append, buildLayout, createOutputStream, fireAppenderStarted, fireAppenderStopped, fireEventAppended, fireEventAppendFailed, getHost, getSeverityForEvent, removeListener, setHost, start, stop
facilityStringToint, getCharset, getFacility, getMaxMessageSize, getPort, getSuffixPattern, getSyslogHost, postProcess, setCharset, setFacility, setMaxMessageSize, setPort, setSuffixPattern, setSyslogHost
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public LogstashLayout getLayout()
getLayout
in class AbstractLogstashUdpSocketAppender<ILoggingEvent>
public void setLayout(Layout<ILoggingEvent> layout)
setLayout
in class AbstractLogstashUdpSocketAppender<ILoggingEvent>
public void addProvider(JsonProvider<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 setIncludeMdcKeyNames(List<String> includeMdcKeyNames)
public void addExcludeMdcKeyName(String excludedMdcKeyName)
public void setExcludeMdcKeyNames(List<String> excludeMdcKeyNames)
public boolean isIncludeContext()
public void setIncludeContext(boolean includeContext)
public boolean isIncludeStructuredArguments()
public void setIncludeStructuredArguments(boolean includeStructuredArguments)
public boolean isIncludeNonStructuredArguments()
public void setIncludeNonStructuredArguments(boolean includeNonStructuredArguments)
public String getNonStructuredArgumentsFieldPrefix()
public void setNonStructuredArgumentsFieldPrefix(String nonStructuredArgumentsFieldPrefix)
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 void setFindAndRegisterJacksonModules(boolean findAndRegisterJacksonModules)
public String getTimeZone()
public void setTimeZone(String timeZoneId)
public ThrowableHandlingConverter getThrowableConverter()
public void setThrowableConverter(ThrowableHandlingConverter throwableConverter)
public Layout<ILoggingEvent> getPrefix()
public void setPrefix(Layout<ILoggingEvent> prefix)
public Layout<ILoggingEvent> getSuffix()
public void setSuffix(Layout<ILoggingEvent> suffix)
public String getLineSeparator()
public void setLineSeparator(String lineSeparator)
Copyright © 2020. All rights reserved.