NullPointerException when using ErrorHandler

2009-08-13 Thread Himanshu Gupta
Hi Guys, I am using ErrorHandler in my log4j.xml file but when I put my node as: it throws a NullPointerException saying: 13 Aug 2009 18:05:26,351 <@> INFO <@> [:Finalizer] <@> <@> <@> <@> <@> platform.util.logging

Re: Changing log level without restarting app server

2009-08-13 Thread Geoff Davies
I took a different approach to watching the file. I had a servlet simply reload it when a parameter on a url was called. The servlet then simply did: URL url = Loader.getResource("log4j.xml"); DOMConfigurator.configure(url); Works fine for me. Not exceptions or errors and work

RE: Need Info/Documentation/Examples for extending log4j for additional fields/info

2009-08-13 Thread sukesh jain
Hi, Is it possible to specify the key of the MDC through the code i.e. when calling one of the printing methods so that only the value corresponding to supplied key is logged in the log file. Because in my case I have a map and at the runtime user decides which corresponding key value needs to

ErrorHandler

2009-08-13 Thread Himanshu Gupta
Hi guys, Can someone please point me to example on how to implement custom ErrorHandler and not use the default one? I am currently logging all my logs in log files over the network through RollingFileAppender. But if there is any glitch in network and it goes down and recovers, application

Re: Changing log level without restarting app server

2009-08-13 Thread Alexander
Strange [?] Last time I used log4j it works fine this way. Its even described there #11 How can I change log behavior at runtime? 2009/8/13 AL > Hey everyone, > > I have a J2EE app using EJB 2.1, Struts 1 and Hibernate, running on JBoss > 4.2.3 a

Changing log level without restarting app server

2009-08-13 Thread AL
Hey everyone, I have a J2EE app using EJB 2.1, Struts 1 and Hibernate, running on JBoss 4.2.3 and want to be able to modify various properties in log4j.properties without having to restart the app server, e.g. Change the log level from info to debug. What's the best way to get this set up