org.springframework.boot.logging
Class AbstractLoggingSystem

java.lang.Object
  extended by org.springframework.boot.logging.LoggingSystem
      extended by org.springframework.boot.logging.AbstractLoggingSystem
Direct Known Subclasses:
JavaLoggingSystem, Log4JLoggingSystem, LogbackLoggingSystem

public abstract class AbstractLoggingSystem
extends LoggingSystem

Abstract base class for LoggingSystem implementations.

Author:
Phillip Webb, Dave Syer

Constructor Summary
AbstractLoggingSystem(ClassLoader classLoader, String... paths)
           
 
Method Summary
 void beforeInitialize()
          Reset the logging system to be limit output.
protected  ClassLoader getClassLoader()
           
protected  String getPackagedConfigFile(String fileName)
           
 void initialize()
          Initialize the logging system using sensible defaults.
protected  void initializeWithSensibleDefaults()
           
 
Methods inherited from class org.springframework.boot.logging.LoggingSystem
get, initialize, setLogLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLoggingSystem

public AbstractLoggingSystem(ClassLoader classLoader,
                             String... paths)
Method Detail

getClassLoader

protected final ClassLoader getClassLoader()

beforeInitialize

public void beforeInitialize()
Description copied from class: LoggingSystem
Reset the logging system to be limit output. This method may be called before LoggingSystem.initialize() to reduce logging noise until the systems has been full Initialized.

Specified by:
beforeInitialize in class LoggingSystem

initialize

public void initialize()
Description copied from class: LoggingSystem
Initialize the logging system using sensible defaults. This method should generally try to find system specific configuration on classpath before falling back to sensible defaults.

Specified by:
initialize in class LoggingSystem

initializeWithSensibleDefaults

protected void initializeWithSensibleDefaults()

getPackagedConfigFile

protected final String getPackagedConfigFile(String fileName)


Copyright © 2013. All Rights Reserved.