org.springframework.boot.logging

Class LogFile



  • public class LogFile
    extends Object
    A reference to a log output file. Log output files are specified using logging.file or logging.path Environment properties. If the logging.file property is not specified "spring.log" will be written in the logging.path directory.
    Since:
    1.2.1
    Author:
    Phillip Webb
    See Also:
    get(PropertyResolver)
    • Field Detail

      • FILE_PROPERTY

        public static final String FILE_PROPERTY
        The name of the Spring property that contains the name of the log file. Names can be an exact location or relative to the current directory.
        See Also:
        Constant Field Values
      • PATH_PROPERTY

        public static final String PATH_PROPERTY
        The name of the Spring property that contains the directory where log files are written.
        See Also:
        Constant Field Values
    • Method Detail

      • applyToSystemProperties

        public void applyToSystemProperties()
        Apply log file details to LOG_PATH and LOG_FILE system properties.
      • applyTo

        public void applyTo(Properties properties)
        Apply log file details to LOG_PATH and LOG_FILE map entries.
        Parameters:
        properties - the properties to apply to