public abstract class AbstractLoggingSystem extends LoggingSystem
LoggingSystem implementations.| Constructor and Description |
|---|
AbstractLoggingSystem(ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeInitialize()
Reset the logging system to be limit output.
|
protected ClassLoader |
getClassLoader() |
protected String |
getPackagedConfigFile(String fileName) |
protected String |
getSelfInitializationConfig()
Return any self initialization config that has been applied.
|
protected abstract String[] |
getStandardConfigLocations()
Return the standard config locations for this system.
|
void |
initialize(String configLocation,
String logFile)
Fully initialize the logging system.
|
protected abstract void |
loadConfiguration(String location,
String logFile)
Load a specific configuration.
|
protected abstract void |
loadDefaults(String logFile)
Load sensible defaults for the logging system.
|
get, setLogLevelpublic AbstractLoggingSystem(ClassLoader classLoader)
public void beforeInitialize()
LoggingSystemLoggingSystem.initialize(String, String) to reduce logging noise until the systems has
been fully Initialized.beforeInitialize in class LoggingSystempublic void initialize(String configLocation, String logFile)
LoggingSysteminitialize in class LoggingSystemconfigLocation - 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 String getSelfInitializationConfig()
getStandardConfigLocations() and assumes that any file that exists
will have been applied.protected abstract String[] getStandardConfigLocations()
getSelfInitializationConfig()protected abstract void loadDefaults(String logFile)
logFile - the file to load or null if no log file is to be writtenprotected abstract void loadConfiguration(String location, String logFile)
location - the location of the configuration to load (never null)logFile - the file to load or null if no log file is to be writtenprotected final ClassLoader getClassLoader()
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.