aspose file tools*
The moose likes Other Open Source Projects and the fly likes log4j properties file - regarding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "log4j properties file - regarding" Watch "log4j properties file - regarding" New topic
Author

log4j properties file - regarding

PNS Subramanian
Ranch Hand

Joined: Jul 13, 2004
Posts: 150
In log4j would Properties loaded in the memory will be updated dynamically whenever the property file gets changed ? This is an application requirement.
Appreciate a response for this.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

In log4j would Properties loaded in the memory will be updated dynamically whenever the property file gets changed ? This is an application requirement.


No.


Groovy
Bharathi Balasubramanian
Greenhorn

Joined: Jul 12, 2000
Posts: 26
You may able to do this dynamic by getting appenders and modifying through runtime API. If log4j.properties file going to change manually, you can turn-on watch feature (Im not sure what is that called) to update the logger automatic.

If none of this going to work!! You can always write custom wrapper to-do what you want.. That�s the prettiness of open source.


[ October 05, 2004: Message edited by: Bharathi Balasubramanian ]

I got a flight to catch.
Pavan Panduga
Ranch Hand

Joined: Jun 12, 2002
Posts: 68
take a look at the following method of log4j API.
configureAndWatch(...)


It's available in both PropertyConfigurator and DOMConfigurator.
make sure to do some more research before making use of this option in J2EE environment.

Regards,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: log4j properties file - regarding