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()voidsetArguments(String arguments) voidvoidsetCallerClass(String callerClass) voidsetCallerFile(String callerFile) voidsetCallerLine(String callerLine) voidsetCallerMethod(String callerMethod) voidsetKeyValuePair(String keyValuePair) voidvoidsetLevelValue(String levelValue) voidvoidvoidsetRootStackTraceElement(String rootStackTraceElement) voidsetRootStackTraceElementClass(String rootStackTraceElementClass) voidsetRootStackTraceElementMethod(String rootStackTraceElementMethod) voidsetStackTrace(String stackTrace) voidMethods 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
-
getKeyValuePair
-
setKeyValuePair
-
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
-