Class LogstashFieldNames

java.lang.Object
net.logstash.logback.fieldnames.LogstashCommonFieldNames
net.logstash.logback.fieldnames.LogstashFieldNames
Direct Known Subclasses:
ShortenedFieldNames

public class LogstashFieldNames extends LogstashCommonFieldNames
Names of standard fields that appear in the JSON output.
  • Constructor Details

    • LogstashFieldNames

      public LogstashFieldNames()
  • Method Details

    • getLogger

      public String getLogger()
    • setLogger

      public void setLogger(String logger)
    • getLevel

      public String getLevel()
    • setLevel

      public void setLevel(String level)
    • getLevelValue

      public String getLevelValue()
    • setLevelValue

      public void setLevelValue(String levelValue)
    • getCaller

      public String 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

      public void setCaller(String caller)
    • getCallerClass

      public String getCallerClass()
    • setCallerClass

      public void setCallerClass(String callerClass)
    • getCallerMethod

      public String getCallerMethod()
    • setCallerMethod

      public void setCallerMethod(String callerMethod)
    • getCallerFile

      public String getCallerFile()
    • setCallerFile

      public void setCallerFile(String callerFile)
    • getCallerLine

      public String getCallerLine()
    • setCallerLine

      public void setCallerLine(String callerLine)
    • getStackTrace

      public String getStackTrace()
    • setStackTrace

      public void setStackTrace(String stackTrace)
    • getTags

      public String getTags()
    • setTags

      public void setTags(String tags)
    • getMdc

      public String 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

      public void setMdc(String mdc)
    • getArguments

      public String 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

      public void setArguments(String arguments)
    • getRootStackTraceElement

      public String getRootStackTraceElement()
    • setRootStackTraceElement

      public void setRootStackTraceElement(String rootStackTraceElement)
    • getRootStackTraceElementMethod

      public String getRootStackTraceElementMethod()
    • setRootStackTraceElementMethod

      public void setRootStackTraceElementMethod(String rootStackTraceElementMethod)
    • getRootStackTraceElementClass

      public String getRootStackTraceElementClass()
    • setRootStackTraceElementClass

      public void setRootStackTraceElementClass(String rootStackTraceElementClass)