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.
|
void |
initialize(LoggingInitializationContext initializationContext,
String configLocation,
LogFile logFile)
Fully initialize the logging system.
|
void |
initialize(String configLocation,
LogFile logFile)
Deprecated.
since 1.3 in favor of
initialize(LoggingInitializationContext, String, LogFile) |
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(LoggingInitializationContext, String, LogFile)
to reduce
logging noise until the system has been fully initialized.public void initialize(LoggingInitializationContext initializationContext, String configLocation, LogFile logFile)
initializationContext
- the logging initialization contextconfigLocation
- a log configuration location or null
if default
initialization is requiredlogFile
- the log output file that should be written or null
for
console only output@Deprecated public void initialize(String configLocation, LogFile logFile)
initialize(LoggingInitializationContext, 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 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.