org.springframework.boot.logging

Class AbstractLoggingSystem

    • Constructor Detail

      • AbstractLoggingSystem

        public AbstractLoggingSystem(ClassLoader classLoader)
    • Method Detail

      • initialize

        public void initialize(String configLocation,
                      String 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.
      • getStandardConfigLocations

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

        protected abstract void loadDefaults(String 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,
                             String 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
      • getClassLoader

        protected final ClassLoader getClassLoader()
      • getPackagedConfigFile

        protected final String getPackagedConfigFile(String fileName)

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