|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.PropertyConfigurator
public class PropertyConfigurator
Constructor Summary | |
---|---|
PropertyConfigurator()
|
Method Summary | |
---|---|
static void |
configure(InputStream inputStream)
Reads configuration options from an InputStream. |
static void |
configure(Properties properties)
Read configuration options from properties . |
static void |
configure(String configFileName)
|
static void |
configure(URL configURL)
Read configuration options from url configURL . |
static void |
configureAndWatch(String configFilename)
Like configureAndWatch(String, long) except that the
default delay as defined by FileWatchdog.DEFAULT_DELAY is
used. |
static void |
configureAndWatch(String configFilename,
long delay)
Read the configuration file configFilename if it
exists. |
void |
doConfigure(InputStream inputStream,
LoggerRepository hierarchy)
Read configuration options from an InputStream. |
void |
doConfigure(Properties properties,
LoggerRepository hierarchy)
Read configuration options from properties . |
void |
doConfigure(String configFileName,
LoggerRepository hierarchy)
|
void |
doConfigure(URL configURL,
LoggerRepository hierarchy)
Read configuration options from url configURL . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyConfigurator()
Method Detail |
---|
public void doConfigure(String configFileName, LoggerRepository hierarchy)
public static void configure(String configFileName)
public static void configure(URL configURL)
configURL
.
public static void configure(InputStream inputStream)
public static void configure(Properties properties)
properties
.
See doConfigure(String, LoggerRepository)
for the expected format.
public static void configureAndWatch(String configFilename)
configureAndWatch(String, long)
except that the
default delay as defined by FileWatchdog.DEFAULT_DELAY is
used.
configFilename
- A file in key=value format.public static void configureAndWatch(String configFilename, long delay)
configFilename
if it
exists. Moreover, a thread will be created that will periodically
check if configFilename
has been created or
modified. The period is determined by the delay
argument. If a change or file creation is detected, then
configFilename
is read to configure log4j.
configFilename
- A file in key=value format.delay
- The delay in milliseconds to wait between each check.public void doConfigure(Properties properties, LoggerRepository hierarchy)
properties
.
See doConfigure(String, LoggerRepository)
for the expected format.
public void doConfigure(InputStream inputStream, LoggerRepository hierarchy)
public void doConfigure(URL configURL, LoggerRepository hierarchy)
configURL
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2013 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.