public abstract class LoggingSystem extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SYSTEM_PROPERTY
A System property that can be used to indicate the
LoggingSystem to use. |
Constructor and Description |
---|
LoggingSystem() |
Modifier and Type | Method and Description |
---|---|
abstract void |
beforeInitialize()
Reset the logging system to be limit output.
|
void |
cleanUp()
Clean up the logging system.
|
static LoggingSystem |
get(ClassLoader classLoader)
Detect and return the logging system in use.
|
abstract void |
initialize(String configLocation,
LogFile logFile)
Fully initialize the logging system.
|
abstract void |
setLogLevel(String loggerName,
LogLevel level)
Sets the logging level for a given logger.
|
public static final String SYSTEM_PROPERTY
LoggingSystem
to use.public abstract void beforeInitialize()
initialize(String, LogFile)
to reduce logging noise until the system has
been fully Initialized.public abstract void initialize(String configLocation, LogFile 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 void cleanUp()
public abstract void setLogLevel(String loggerName, LogLevel level)
loggerName
- the name of the logger to setlevel
- the log levelpublic static LoggingSystem get(ClassLoader classLoader)
classLoader
- the classloaderCopyright © 2015 Pivotal Software, Inc.. All rights reserved.