枚举类 LoggingSystemProperty

java.lang.Object
java.lang.Enum<LoggingSystemProperty>
org.springframework.boot.logging.LoggingSystemProperty
所有已实现的接口:
Serializable, Comparable<LoggingSystemProperty>, Constable

public enum LoggingSystemProperty extends Enum<LoggingSystemProperty>
Logging system properties that can later be used by log configuration files.
从以下版本开始:
3.2.0
作者:
Phillip Webb
另请参阅:
  • 枚举常量详细资料

    • APPLICATION_NAME

      public static final LoggingSystemProperty APPLICATION_NAME
      Logging system property for the application name that should be logged.
    • APPLICATION_GROUP

      public static final LoggingSystemProperty APPLICATION_GROUP
      Logging system property for the application group that should be logged.
      从以下版本开始:
      3.4.0
    • PID

      public static final LoggingSystemProperty PID
      Logging system property for the process ID.
    • LOG_FILE

      public static final LoggingSystemProperty LOG_FILE
      Logging system property for the log file.
    • LOG_PATH

      public static final LoggingSystemProperty LOG_PATH
      Logging system property for the log path.
    • CONSOLE_CHARSET

      public static final LoggingSystemProperty CONSOLE_CHARSET
      Logging system property for the console log charset.
    • FILE_CHARSET

      public static final LoggingSystemProperty FILE_CHARSET
      Logging system property for the file log charset.
    • CONSOLE_THRESHOLD

      public static final LoggingSystemProperty CONSOLE_THRESHOLD
      Logging system property for the console log.
    • FILE_THRESHOLD

      public static final LoggingSystemProperty FILE_THRESHOLD
      Logging system property for the file log.
    • EXCEPTION_CONVERSION_WORD

      public static final LoggingSystemProperty EXCEPTION_CONVERSION_WORD
      Logging system property for the exception conversion word.
    • CONSOLE_PATTERN

      public static final LoggingSystemProperty CONSOLE_PATTERN
      Logging system property for the console log pattern.
    • FILE_PATTERN

      public static final LoggingSystemProperty FILE_PATTERN
      Logging system property for the file log pattern.
    • CONSOLE_STRUCTURED_FORMAT

      public static final LoggingSystemProperty CONSOLE_STRUCTURED_FORMAT
      Logging system property for the console structured logging format.
      从以下版本开始:
      3.4.0
    • FILE_STRUCTURED_FORMAT

      public static final LoggingSystemProperty FILE_STRUCTURED_FORMAT
      Logging system property for the file structured logging format.
      从以下版本开始:
      3.4.0
    • LEVEL_PATTERN

      public static final LoggingSystemProperty LEVEL_PATTERN
      Logging system property for the log level pattern.
    • DATEFORMAT_PATTERN

      public static final LoggingSystemProperty DATEFORMAT_PATTERN
      Logging system property for the date-format pattern.
    • CORRELATION_PATTERN

      public static final LoggingSystemProperty CORRELATION_PATTERN
      Logging system property for the correlation pattern.
  • 方法详细资料

    • values

      public static LoggingSystemProperty[] values()
      返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同
      返回:
      包含该枚举类的常量的数组,顺序与声明这些常量的顺序相同
    • valueOf

      public static LoggingSystemProperty valueOf(String name)
      返回带有指定名称的该类的枚举常量。 字符串必须与用于声明该类的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果该枚举类没有带有指定名称的常量
      NullPointerException - 如果参数为空值
    • getEnvironmentVariableName

      public String getEnvironmentVariableName()
      Return the name of environment variable that can be used to access this property.
      返回:
      the environment variable name
    • getApplicationPropertyName

      public String getApplicationPropertyName()
      Return the application property name that can be used to set this property.
      返回:
      the application property name
      从以下版本开始:
      3.4.0