public class Log4jConfigurer extends Object
log4j.properties with a custom log4j.properties
file
2 - Provide the ability to dynamically alter the log4j configuration at runtime by modifying a log4j.properties
on
the file system that is being monitored for changes
Unless the property ole.fs.log4j.override
is set to true
, this configurer takes no action and the
default log4j configuration bundled with the application is used.
Constructor and Description |
---|
Log4jConfigurer() |
Modifier and Type | Method and Description |
---|---|
static void |
configureLogging(boolean doStartupStatsLogging)
If you set the system property -Dlog4j.debug, you will see that the
isOverride() method runs code that issues
logging statements. |
protected static void |
debugClasspath() |
protected static File |
getCustomConfigFile() |
protected static NumberFormat |
getNumberFormatter() |
protected static long |
getReloadMillis() |
protected static boolean |
isOverride()
Return true if we need to override the default log4j configuration with custom settings.
|
public Log4jConfigurer()
public static final void configureLogging(boolean doStartupStatsLogging)
isOverride()
method runs code that issues
logging statements. This means that log4 has already initialized itself and has issued a few logging statements prior to the
point where this method attempts to configure log4j with a custom log4j.properties
.protected static boolean isOverride()
protected static File getCustomConfigFile()
protected static long getReloadMillis()
protected static void debugClasspath()
protected static NumberFormat getNumberFormatter()
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.