org.asyrinx.brownie.log.log4j.servlet
クラス ServletPropertyConfigurator
java.lang.Object
org.asyrinx.brownie.log.log4j.PropertyConfigurator
org.asyrinx.brownie.log.log4j.servlet.ServletPropertyConfigurator
- すべての実装インタフェース:
- org.apache.log4j.spi.Configurator
- public class ServletPropertyConfigurator
- extends PropertyConfigurator
- 作成者:
- akima
クラス org.asyrinx.brownie.log.log4j.PropertyConfigurator から継承したフィールド |
ADDITIVITY_PREFIX, APPENDER_PREFIX, CATEGORY_PREFIX, FACTORY_PREFIX, LOGGER_FACTORY_KEY, LOGGER_PREFIX, loggerFactory, registry, RENDERER_PREFIX, ROOT_CATEGORY_PREFIX, ROOT_LOGGER_PREFIX, THRESHOLD_PREFIX |
インタフェース org.apache.log4j.spi.Configurator から継承したフィールド |
INHERITED, NULL |
メソッドの概要 |
static void |
configure(java.lang.String configFilename,
javax.servlet.ServletContext servletContext)
|
static void |
configureAndWatch(java.lang.String configFilename,
long delay,
javax.servlet.ServletContext servletContext)
Read the configuration file configFilename if it exists.
|
static void |
configureAndWatch(java.lang.String configFilename,
javax.servlet.ServletContext servletContext)
Like PropertyConfigurator.configureAndWatch(String, long) except that the default
delay as defined by FileWatchdog.DEFAULT_DELAY is used. |
protected org.apache.log4j.Appender |
parseAppender(java.util.Properties props,
java.lang.String appenderName)
|
クラス org.asyrinx.brownie.log.log4j.PropertyConfigurator から継承したメソッド |
configure, configure, configure, configureAndWatch, configureAndWatch, configureLoggerFactory, configureRootCategory, doConfigure, doConfigure, doConfigure, parseAdditivityForLogger, parseCategory, parseCatsAndRenderers, registryGet, registryPut |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resolver
protected final FileNameResolver resolver
ServletPropertyConfigurator
public ServletPropertyConfigurator(javax.servlet.ServletContext servletContext)
parseAppender
protected org.apache.log4j.Appender parseAppender(java.util.Properties props,
java.lang.String appenderName)
- オーバーライド:
- クラス
PropertyConfigurator
内の parseAppender
- 関連項目:
org.asyrinx.log.log4j.PropertyConfigurator#parseAppender(java.util.Properties,
java.lang.String)
configure
public static void configure(java.lang.String configFilename,
javax.servlet.ServletContext servletContext)
configureAndWatch
public static void configureAndWatch(java.lang.String configFilename,
javax.servlet.ServletContext servletContext)
- Like
PropertyConfigurator.configureAndWatch(String, long)
except that the default
delay as defined by FileWatchdog.DEFAULT_DELAY
is used.
- パラメータ:
configFilename
- A file in key=value format.
configureAndWatch
public static void configureAndWatch(java.lang.String configFilename,
long delay,
javax.servlet.ServletContext servletContext)
- Read the configuration file
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.
Copyright © 2004 asyrinx organization. All Rights Reserved.