public abstract class LoggingSystem extends Object
Constructor and Description |
---|
LoggingSystem() |
Modifier and Type | Method and Description |
---|---|
abstract void |
beforeInitialize()
Reset the logging system to be limit output.
|
static LoggingSystem |
get(ClassLoader classLoader)
Detect and return the logging system in use.
|
abstract void |
initialize(String configLocation,
String logFile)
Fully initialize the logging system.
|
abstract void |
setLogLevel(String loggerName,
LogLevel level)
Sets the logging level for a given logger.
|
public abstract void beforeInitialize()
initialize(String, String)
to reduce logging noise until the systems has
been fully Initialized.public abstract void initialize(String configLocation, String logFile)
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 outputpublic abstract void setLogLevel(String loggerName, LogLevel level)
loggerName
- the name of the logger to setlevel
- the log levelpublic static LoggingSystem get(ClassLoader classLoader)
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.