org.springframework.boot.logging.logback
Class LogbackLoggingSystem

java.lang.Object
  extended by org.springframework.boot.logging.LoggingSystem
      extended by org.springframework.boot.logging.AbstractLoggingSystem
          extended by org.springframework.boot.logging.logback.LogbackLoggingSystem

public class LogbackLoggingSystem
extends AbstractLoggingSystem

LoggingSystem for for logback.

Author:
Phillip Webb, Dave Syer

Constructor Summary
LogbackLoggingSystem(ClassLoader classLoader)
           
 
Method Summary
 void beforeInitialize()
          Reset the logging system to be limit output.
 void initialize(String configLocation)
          Initialize the logging system from a logging configuration location.
 void setLogLevel(String loggerName, LogLevel level)
          Sets the logging level for a given logger.
 
Methods inherited from class org.springframework.boot.logging.AbstractLoggingSystem
getClassLoader, getPackagedConfigFile, initialize, initializeWithSensibleDefaults
 
Methods inherited from class org.springframework.boot.logging.LoggingSystem
get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogbackLoggingSystem

public LogbackLoggingSystem(ClassLoader classLoader)
Method Detail

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.

Overrides:
beforeInitialize in class AbstractLoggingSystem

initialize

public void initialize(String configLocation)
Description copied from class: LoggingSystem
Initialize the logging system from a logging configuration location.

Specified by:
initialize in class LoggingSystem
Parameters:
configLocation - a log configuration location

setLogLevel

public void setLogLevel(String loggerName,
                        LogLevel level)
Description copied from class: LoggingSystem
Sets the logging level for a given logger.

Specified by:
setLogLevel in class LoggingSystem
Parameters:
loggerName - the name of the logger to set
level - the log level


Copyright © 2013. All Rights Reserved.