Class LoggingSystemProperties

java.lang.Object
org.springframework.boot.logging.LoggingSystemProperties
Direct Known Subclasses:
LogbackLoggingSystemProperties

public class LoggingSystemProperties extends Object
Utility to set system properties that can later be used by log configuration files.
Since:
2.0.0
Author:
Andy Wilkinson, Phillip Webb, Madhura Bhave, Vedran Pavic, Robert Thornton, EddĂș MelĂ©ndez
  • Field Details

    • PID_KEY

      public static final String PID_KEY
      The name of the System property that contains the process ID.
      See Also:
    • EXCEPTION_CONVERSION_WORD

      public static final String EXCEPTION_CONVERSION_WORD
      The name of the System property that contains the exception conversion word.
      See Also:
    • LOG_FILE

      public static final String LOG_FILE
      The name of the System property that contains the log file.
      See Also:
    • LOG_PATH

      public static final String LOG_PATH
      The name of the System property that contains the log path.
      See Also:
    • CONSOLE_LOG_PATTERN

      public static final String CONSOLE_LOG_PATTERN
      The name of the System property that contains the console log pattern.
      See Also:
    • CONSOLE_LOG_CHARSET

      public static final String CONSOLE_LOG_CHARSET
      The name of the System property that contains the console log charset.
      See Also:
    • FILE_LOG_PATTERN

      public static final String FILE_LOG_PATTERN
      The name of the System property that contains the file log pattern.
      See Also:
    • FILE_LOG_CHARSET

      public static final String FILE_LOG_CHARSET
      The name of the System property that contains the file log charset.
      See Also:
    • LOG_LEVEL_PATTERN

      public static final String LOG_LEVEL_PATTERN
      The name of the System property that contains the log level pattern.
      See Also:
    • LOG_DATEFORMAT_PATTERN

      public static final String LOG_DATEFORMAT_PATTERN
      The name of the System property that contains the log date-format pattern.
      See Also:
  • Constructor Details

  • Method Details

    • 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(PropertyResolver resolver, String systemPropertyName, String propertyName)
    • setSystemProperty

      protected final void setSystemProperty(PropertyResolver resolver, String systemPropertyName, String propertyName, String defaultValue)
    • setSystemProperty

      protected final void setSystemProperty(String name, String value)