public class LogbackLoggingSystem extends Slf4JLoggingSystem
LoggingSystem
for for logback.Constructor and Description |
---|
LogbackLoggingSystem(ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
void |
beforeInitialize()
Reset the logging system to be limit output.
|
protected String[] |
getStandardConfigLocations()
Return the standard config locations for this system.
|
void |
initialize(String configLocation,
String logFile)
Fully initialize the logging system.
|
protected void |
loadConfiguration(String location,
String logFile)
Load a specific configuration.
|
protected void |
loadDefaults(String logFile)
Load sensible defaults for the logging system.
|
void |
setLogLevel(String loggerName,
LogLevel level)
Sets the logging level for a given logger.
|
getClassLoader, getPackagedConfigFile, getSelfInitializationConfig
get
public LogbackLoggingSystem(ClassLoader classLoader)
protected String[] getStandardConfigLocations()
AbstractLoggingSystem
getStandardConfigLocations
in class AbstractLoggingSystem
AbstractLoggingSystem.getSelfInitializationConfig()
public void beforeInitialize()
LoggingSystem
LoggingSystem.initialize(String, String)
to reduce logging noise until the systems has
been fully Initialized.beforeInitialize
in class Slf4JLoggingSystem
public void initialize(String configLocation, String logFile)
LoggingSystem
initialize
in class AbstractLoggingSystem
configLocation
- a log configuration location or null
if default
initialization is requiredlogFile
- the log output file that should be written or null
for
console only outputprotected void loadDefaults(String logFile)
AbstractLoggingSystem
loadDefaults
in class AbstractLoggingSystem
logFile
- the file to load or null
if no log file is to be writtenprotected void loadConfiguration(String location, String logFile)
AbstractLoggingSystem
loadConfiguration
in class AbstractLoggingSystem
location
- the location of the configuration to load (never null
)logFile
- the file to load or null
if no log file is to be writtenpublic void setLogLevel(String loggerName, LogLevel level)
LoggingSystem
setLogLevel
in class LoggingSystem
loggerName
- the name of the logger to setlevel
- the log levelCopyright © 2014 Pivotal Software, Inc.. All rights reserved.