The moose likes Other Open Source Projects and the fly likes Log4j PropertyConfigurator ConfigureAndWatch problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Log4j PropertyConfigurator ConfigureAndWatch problem" Watch "Log4j PropertyConfigurator ConfigureAndWatch problem" New topic
Author

Log4j PropertyConfigurator ConfigureAndWatch problem

Angus Rose
Ranch Hand

Joined: Jun 21, 2002
Posts: 55
Hi All,
I'm currently writing an EJB on OC4J and I'm using log4j. I want to make use of the PropertyConfigurator.configureAndWatch() method and have placed the line PropertyConfigurator.configureAndWatch("log4j.properties"); in the ejbCreate() method. However, if I change the level in the .properties file then this isn't picked up by the ejb - a real pain in the neck!
Has anybody else had any problems doing this? The properties file is in the applib dir of oc4j and is picked up without any problem when the server starts up.

Thanks in advance

Angus
 
 
subject: Log4j PropertyConfigurator ConfigureAndWatch problem
 
Threads others viewed
jndi.properties
Log4j - no output
Runtime changes to log4j.properties
Determining the active log4j.properties file
Deploying Apps w/o shutting down?
MyEclipse, The Clear Choice