类 LoggingSystemProperties

java.lang.Object
org.springframework.boot.logging.LoggingSystemProperties
直接已知子类:
LogbackLoggingSystemProperties

public class LoggingSystemProperties extends Object
Utility to set system properties that can later be used by log configuration files.
从以下版本开始:
2.0.0
作者:
Andy Wilkinson, Phillip Webb, Madhura Bhave, Vedran Pavic, Robert Thornton, Eddú Meléndez, Jonatan Ivanov
另请参阅:
  • 构造器详细资料

    • LoggingSystemProperties

      public LoggingSystemProperties(Environment environment)
      Create a new LoggingSystemProperties instance.
      参数:
      environment - the source environment
    • LoggingSystemProperties

      public LoggingSystemProperties(Environment environment, BiConsumer<String,String> setter)
      Create a new LoggingSystemProperties instance.
      参数:
      environment - the source environment
      setter - setter used to apply the property or null for system properties
      从以下版本开始:
      2.4.2
    • LoggingSystemProperties

      public LoggingSystemProperties(Environment environment, Function<String,String> defaultValueResolver, BiConsumer<String,String> setter)
      Create a new LoggingSystemProperties instance.
      参数:
      environment - the source environment
      defaultValueResolver - function used to resolve default values or null
      setter - setter used to apply the property or null for system properties
      从以下版本开始:
      3.2.0
  • 方法详细资料

    • getDefaultCharset

      protected Charset getDefaultCharset()
    • apply

      public final void apply()
    • apply

      public final void apply(LogFile logFile)
    • apply

      protected void apply(LogFile logFile, PropertyResolver resolver)
    • setSystemProperty

      protected final void setSystemProperty(String name, String value)
      Set a system property.
      参数:
      name - the property name
      value - the value