org.springframework.boot.logging

Class AbstractLoggingSystem

    • Constructor Detail

      • AbstractLoggingSystem

        public AbstractLoggingSystem(ClassLoader classLoader)
    • Method Detail

      • initialize

        public void initialize(String configLocation,
                      LogFile logFile)
        Description copied from class: LoggingSystem
        Fully initialize the logging system.
        Specified by:
        initialize in class LoggingSystem
        Parameters:
        configLocation - a log configuration location or null if default initialization is required
        logFile - the log output file that should be written or null for console only output
      • getSelfInitializationConfig

        protected String getSelfInitializationConfig()
        Return any self initialization config that has been applied. By default this method checks getStandardConfigLocations() and assumes that any file that exists will have been applied.
        Returns:
        the self initialization config
      • getStandardConfigLocations

        protected abstract String[] getStandardConfigLocations()
        Return the standard config locations for this system.
        Returns:
        the standard config locations
        See Also:
        getSelfInitializationConfig()
      • loadDefaults

        protected abstract void loadDefaults(LogFile logFile)
        Load sensible defaults for the logging system.
        Parameters:
        logFile - the file to load or null if no log file is to be written
      • loadConfiguration

        protected abstract void loadConfiguration(String location,
                             LogFile logFile)
        Load a specific configuration.
        Parameters:
        location - the location of the configuration to load (never null)
        logFile - the file to load or null if no log file is to be written
      • reinitialize

        protected void reinitialize()
        Reinitialize the logging system if required. Called when getSelfInitializationConfig() is used and the log file hasn't changed. May be used to reload configuration (for example to pickup additional System properties).
      • getClassLoader

        protected final ClassLoader getClassLoader()
      • getPackagedConfigFile

        protected final String getPackagedConfigFile(String fileName)

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