|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.util.Log4jConfigurer
Convenience class that features simple methods for custom Log4J configuration.
Log4jWebConfigurer
,
Log4jConfigListener
Field Summary | |
static long |
DEFAULT_REFRESH_INTERVAL
|
static java.lang.String |
XML_FILE_EXTENSION
|
Constructor Summary | |
Log4jConfigurer()
|
Method Summary | |
static void |
initLogging(java.lang.String location)
Initialize Log4J with the given configuration and the default refresh interval. |
static void |
initLogging(java.lang.String location,
long refreshInterval)
Initialize Log4J with the given configuration. |
static void |
setWorkingDirSystemProperty(java.lang.String key)
Set the specified system property to the current working directory. |
static void |
shutdownLogging()
Shutdown Log4J to release all file locks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long DEFAULT_REFRESH_INTERVAL
public static final java.lang.String XML_FILE_EXTENSION
Constructor Detail |
public Log4jConfigurer()
Method Detail |
public static void initLogging(java.lang.String location) throws java.io.FileNotFoundException
location
- location of the property config file
java.io.FileNotFoundException
- if the location specifies an invalid file pathpublic static void initLogging(java.lang.String location, long refreshInterval) throws java.io.FileNotFoundException
location
- location of the config filerefreshInterval
- interval between config file refresh checks, in milliseconds
java.io.FileNotFoundException
- if the location specifies an invalid file pathpublic static void shutdownLogging()
public static void setWorkingDirSystemProperty(java.lang.String key)
key
- system property key to useLog4jWebConfigurer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |