public class LogstashFormatter extends Object
| Constructor and Description |
|---|
LogstashFormatter() |
LogstashFormatter(boolean includeCallerInfo) |
LogstashFormatter(boolean includeCallerInfo,
com.fasterxml.jackson.databind.JsonNode customFields) |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
getCustomFields() |
boolean |
isIncludeCallerInfo() |
void |
setCustomFields(com.fasterxml.jackson.databind.JsonNode customFields) |
void |
setIncludeCallerInfo(boolean includeCallerInfo) |
byte[] |
writeValueAsBytes(ch.qos.logback.classic.spi.ILoggingEvent event,
ch.qos.logback.core.Context context) |
String |
writeValueAsString(ch.qos.logback.classic.spi.ILoggingEvent event,
ch.qos.logback.core.Context context) |
public LogstashFormatter()
public LogstashFormatter(boolean includeCallerInfo)
public LogstashFormatter(boolean includeCallerInfo,
com.fasterxml.jackson.databind.JsonNode customFields)
public byte[] writeValueAsBytes(ch.qos.logback.classic.spi.ILoggingEvent event,
ch.qos.logback.core.Context context)
throws IOException
IOExceptionpublic String writeValueAsString(ch.qos.logback.classic.spi.ILoggingEvent event, ch.qos.logback.core.Context context) throws IOException
IOExceptionpublic boolean isIncludeCallerInfo()
public void setIncludeCallerInfo(boolean includeCallerInfo)
public void setCustomFields(com.fasterxml.jackson.databind.JsonNode customFields)
public com.fasterxml.jackson.databind.JsonNode getCustomFields()
Copyright © 2014. All Rights Reserved.