@Deprecated public class Log4JLoggingSystem extends Slf4JLoggingSystem
LoggingSystem
for Log4j.SYSTEM_PROPERTY
Constructor and Description |
---|
Log4JLoggingSystem(ClassLoader classLoader)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
beforeInitialize()
Deprecated.
Reset the logging system to be limit output.
|
protected String[] |
getStandardConfigLocations()
Deprecated.
Return the standard config locations for this system.
|
protected void |
loadConfiguration(LoggingInitializationContext initializationContext,
String location,
LogFile logFile)
Deprecated.
Load a specific configuration.
|
protected void |
loadConfiguration(String location,
LogFile logFile)
Deprecated.
|
protected void |
loadDefaults(LoggingInitializationContext initializationContext,
LogFile logFile)
Deprecated.
Load sensible defaults for the logging system.
|
protected void |
reinitialize(LoggingInitializationContext initializationContext)
Deprecated.
Reinitialize the logging system if required.
|
void |
setLogLevel(String loggerName,
LogLevel level)
Deprecated.
Sets the logging level for a given logger.
|
cleanUp
getClassLoader, getPackagedConfigFile, getSelfInitializationConfig, getSpringConfigLocations, getSpringInitializationConfig, initialize
get, initialize
public Log4JLoggingSystem(ClassLoader classLoader)
protected String[] getStandardConfigLocations()
AbstractLoggingSystem
getStandardConfigLocations
in class AbstractLoggingSystem
AbstractLoggingSystem.getSelfInitializationConfig()
public void beforeInitialize()
LoggingSystem
LoggingSystem.initialize(LoggingInitializationContext, String, LogFile)
to reduce
logging noise until the system has been fully initialized.beforeInitialize
in class Slf4JLoggingSystem
protected void loadDefaults(LoggingInitializationContext initializationContext, LogFile logFile)
AbstractLoggingSystem
loadDefaults
in class AbstractLoggingSystem
initializationContext
- the logging initialization contextlogFile
- the file to load or null
if no log file is to be writtenprotected void loadConfiguration(LoggingInitializationContext initializationContext, String location, LogFile logFile)
AbstractLoggingSystem
loadConfiguration
in class AbstractLoggingSystem
initializationContext
- the logging initialization contextlocation
- the location of the configuration to load (never null
)logFile
- the file to load or null
if no log file is to be writtenprotected void reinitialize(LoggingInitializationContext initializationContext)
AbstractLoggingSystem
AbstractLoggingSystem.getSelfInitializationConfig()
is used and the log file hasn't changed. May
be used to reload configuration (for example to pickup additional System
properties).reinitialize
in class AbstractLoggingSystem
initializationContext
- the logging initialization contextpublic void setLogLevel(String loggerName, LogLevel level)
LoggingSystem
setLogLevel
in class LoggingSystem
loggerName
- the name of the logger to setlevel
- the log levelCopyright © 2015 Pivotal Software, Inc.. All rights reserved.