public class LogstashLayout
extends ch.qos.logback.core.LayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>
| Constructor and Description |
|---|
LogstashLayout() |
| Modifier and Type | Method and Description |
|---|---|
String |
doLayout(ch.qos.logback.classic.spi.ILoggingEvent event) |
String |
getCustomFields() |
LogstashFieldNames |
getFieldNames() |
JsonFactoryDecorator |
getJsonFactoryDecorator() |
JsonGeneratorDecorator |
getJsonGeneratorDecorator() |
int |
getShortenedLoggerNameLength() |
boolean |
isIncludeCallerInfo() |
boolean |
isIncludeContext() |
boolean |
isIncludeMdc() |
void |
setCustomFields(String customFields) |
void |
setEnableContextMap(boolean enableContextMap)
Deprecated.
|
void |
setFieldNames(LogstashFieldNames fieldNames) |
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() |
getContentType, getContext, getFileFooter, getFileHeader, getPresentationFooter, getPresentationHeader, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeaderaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManagerpublic String doLayout(ch.qos.logback.classic.spi.ILoggingEvent event)
public void start()
start in interface ch.qos.logback.core.spi.LifeCyclestart in class ch.qos.logback.core.LayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>public void stop()
stop in interface ch.qos.logback.core.spi.LifeCyclestop in class ch.qos.logback.core.LayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>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)
@Deprecated public void setEnableContextMap(boolean enableContextMap)
public JsonFactoryDecorator getJsonFactoryDecorator()
public void setJsonFactoryDecorator(JsonFactoryDecorator jsonFactoryDecorator)
public JsonGeneratorDecorator getJsonGeneratorDecorator()
public void setJsonGeneratorDecorator(JsonGeneratorDecorator jsonGeneratorDecorator)
Copyright © 2014. All Rights Reserved.