org.springframework.boot.logging

Class LoggingSystemProperties



  • 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 Detail

      • PID_KEY

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

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

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

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

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

        public static final String FILE_CLEAN_HISTORY_ON_START
        The name of the System property that contains the clean history on start flag.
        See Also:
        Constant Field Values
      • FILE_LOG_PATTERN

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

        public static final String FILE_MAX_HISTORY
        The name of the System property that contains the file log max history.
        See Also:
        Constant Field Values
      • FILE_MAX_SIZE

        public static final String FILE_MAX_SIZE
        The name of the System property that contains the file log max size.
        See Also:
        Constant Field Values
      • FILE_TOTAL_SIZE_CAP

        public static final String FILE_TOTAL_SIZE_CAP
        The name of the System property that contains the file total size cap.
        See Also:
        Constant Field Values
      • LOG_LEVEL_PATTERN

        public static final String LOG_LEVEL_PATTERN
        The name of the System property that contains the log level pattern.
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • ROLLING_FILE_NAME_PATTERN

        public static final String ROLLING_FILE_NAME_PATTERN
        The name of the System property that contains the rolled-over log file name pattern.
        See Also:
        Constant Field Values
    • Constructor Detail

      • LoggingSystemProperties

        public LoggingSystemProperties(org.springframework.core.env.Environment environment)
        Create a new LoggingSystemProperties instance.
        Parameters:
        environment - the source environment
    • Method Detail

      • apply

        public void apply()
      • apply

        public void apply(LogFile logFile)

Copyright © 2020 Pivotal Software, Inc.. All rights reserved.