public abstract class LogstashCommonFieldNames extends Object
LogstashFormatter
and the LogstashAccessFormatter
.Modifier and Type | Field and Description |
---|---|
static String |
IGNORE_FIELD_INDICATOR
Field name to use in logback configuration files
if you want the field to be ignored (not output).
|
Constructor and Description |
---|
LogstashCommonFieldNames() |
Modifier and Type | Method and Description |
---|---|
String |
getContext()
The name of the context object field.
|
String |
getMessage() |
String |
getThread() |
String |
getTimestamp() |
String |
getUuid() |
String |
getVersion() |
void |
setContext(String context) |
void |
setMessage(String message) |
void |
setThread(String thread) |
void |
setTimestamp(String timestamp) |
void |
setUuid(String uuid) |
void |
setVersion(String version) |
public static final String IGNORE_FIELD_INDICATOR
public String getTimestamp()
public void setTimestamp(String timestamp)
public String getVersion()
public void setVersion(String version)
public String getMessage()
public void setMessage(String message)
public String getContext()
If this returns null
, then the context fields will be written inline at the root level of the JSON event
output (e.g. as a sibling to all the other fields in this class).
If this returns non-null, then the context fields will be written inside an object with field name returned by this method.
public void setContext(String context)
public String getThread()
public void setThread(String thread)
public String getUuid()
public void setUuid(String uuid)
Copyright © 2013–2021. All rights reserved.