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

フィールドの概要
protected  FileNameResolver resolver
           
 
クラス 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
 
コンストラクタの概要
ServletPropertyConfigurator(javax.servlet.ServletContext servletContext)
           
 
メソッドの概要
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_DELAYis 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_DELAYis 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.