Class LogstashFieldNames
- Direct Known Subclasses:
ShortenedFieldNames
-
Field Summary
Fields inherited from class net.logstash.logback.fieldnames.LogstashCommonFieldNames
IGNORE_FIELD_INDICATOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe name of the arguments object field.The name of the caller object field.getLevel()
getMdc()
The name of the mdc object field.getTags()
void
setArguments
(String arguments) void
void
setCallerClass
(String callerClass) void
setCallerFile
(String callerFile) void
setCallerLine
(String callerLine) void
setCallerMethod
(String callerMethod) void
void
setLevelValue
(String levelValue) void
void
void
setRootStackTraceElement
(String rootStackTraceElement) void
setRootStackTraceElementClass
(String rootStackTraceElementClass) void
setRootStackTraceElementMethod
(String rootStackTraceElementMethod) void
setStackTrace
(String stackTrace) void
Methods inherited from class net.logstash.logback.fieldnames.LogstashCommonFieldNames
getContext, getMessage, getThread, getTimestamp, getUuid, getVersion, setContext, setMessage, setThread, setTimestamp, setUuid, setVersion
-
Constructor Details
-
LogstashFieldNames
public LogstashFieldNames()
-
-
Method Details
-
getLogger
-
setLogger
-
getLevel
-
setLevel
-
getLevelValue
-
setLevelValue
-
getCaller
The name of the caller object field.If this returns null, then the caller data 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 caller data fields will be written inside an object with field name returned by this method
- Returns:
- The name of the caller object field.
-
setCaller
-
getCallerClass
-
setCallerClass
-
getCallerMethod
-
setCallerMethod
-
getCallerFile
-
setCallerFile
-
getCallerLine
-
setCallerLine
-
getStackTrace
-
setStackTrace
-
getTags
-
setTags
-
getMdc
The name of the mdc object field.If this returns null, then the mdc 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 mdc fields will be written inside an object with field name returned by this method
- Returns:
- The name of the mdc object field.
-
setMdc
-
getArguments
The name of the arguments object field.If this returns null, then the arguments 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 arguments will be written inside an object with field name returned by this method
- Returns:
- The name of the arguments object field.
-
setArguments
-
getRootStackTraceElement
-
setRootStackTraceElement
-
getRootStackTraceElementMethod
-
setRootStackTraceElementMethod
-
getRootStackTraceElementClass
-
setRootStackTraceElementClass
-