How can i change the property in PropertyConfigurator

2007-06-12 Thread Meryl Silverburgh
Hi, I load log4j property using this a properties file: PropertyConfigurator.configure(Download.class .getResource("log4j.properties")); can you please tell me how can I change the property in the PropertyConfigurator after I load it via a property file?

RE: How to handle log4j's internal exceptions

2007-06-12 Thread Kamal Ahmed
Did you try something like: log4j.appender.systemOut.errorHandler = org.apache.log4j.varia.FallbackErrorHandler to see if this works -Original Message- From: Stroboskop [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 1:55 PM To: log4j-user@logging.apache.org Subject: RE: How to

log4j log file configuraiton

2007-06-12 Thread Meryl Silverburgh
Hi, I am using log4j for my webapp logging (a servlet in a war file name 'test.war'). The current location of my log files are: log4j.appender.DEBUG.File=${catalina.base}/debug.log How can I change it so that it will be put under the directory of my webapp (e.g. tomcat will create directory 'te

Tomcat 6

2007-06-12 Thread Mark Claassen
Ok, I know this question has been asked a million times, but it depending where I look I get different answers. I want to mimic the logs that tomcat naturally does, but using log4j. I would also like to setup the logs for the webapps I know are going to be there in a common place. Can I do this?

RE: Drag and Drop XML file

2007-06-12 Thread Scott Deboy
1. Change your fileappender layout from simplelayout to xmllayout. 2. This may be due to serialization issues that hopefully will be fixed with log4j 1.2.15 Scott Deboy Principal Engineer COMOTIV SYSTEMS 111 SW Columbia Street Ste. 950 Portland, OR 97201 Office: 503.224.7496 Direct Line: 503.821

Re: Drag and Drop XML file

2007-06-12 Thread Paul Smith
can you paste in the configuration file that Chainsaw is using? I wonder if you have it using the XMLLayout for the file appender. On 13/06/2007, at 5:37 AM, ashish talati wrote: Hi Scott, Thank you very much for your help. Its working now. Moreover 1)-> I am trying to load this fil

Drag and Drop XML file

2007-06-12 Thread ashish talati
Hi Scott, Thank you very much for your help. Its working now. Moreover 1)-> I am trying to load this file again into chainsaw through Drag and Drop XML file option, but nothing is happened. that option keeps disable all time. Can you please tell me what is the problem?? I saved my fil

RE: chainsaw configuration help

2007-06-12 Thread Scott Deboy
Add an appender-ref entry to the root node: Scott Deboy Principal Engineer COMOTIV SYSTEMS 111 SW Columbia Street Ste. 950 Portland, OR 97201 Office: 503.224.7496 Direct Line: 503.821.6482 Cell: 503.997.1367 Fax: 503.222.0185 [EMAIL PROTECTED] www.comotivsystems.com -O

chainsaw configuration help

2007-06-12 Thread ashish talati
Hi scott, thank you very much for reply. I did use the file appender in my chainsaw receiver configuration as below, http://jakarta.apache.org/log4j/"; debug="true"> It is creating chainsa

RE: How to handle log4j's internal exceptions

2007-06-12 Thread Stroboskop
I don't think, that's what i wanted to know. I didn't want to set the log level to ERROR, i wanted to set an ErrorHandler. So i was more thinking along the line of: log4j.appender.File.errorHandler=com.my.very.own.ErrorHandler When i set it programatically, it works fine. This of course doesn't

RE: How to handle log4j's internal exceptions

2007-06-12 Thread Kamal Ahmed
As for #1, in log4j.properties Example: log4j.logger.com.handler.DefaultMessageHandler=ERROR for # 2: Ask Ceki Gülcü -Original Message- From: Stroboskop [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 9:36 AM To: log4j-user@logging.apache.org Subject: RE: How to handle log4j

chainsaw Configuration help

2007-06-12 Thread ashish talati
Hi, Thank you very much for your reply. I think I was not clear in explaining my problem. I am getting the logs in the chainsaw from my remote server. I used socket appender at remote server side and socket receiver at chainsaw side. No issue on this. However when I exit the chainsaw

RE: please help-chainsaw configuration

2007-06-12 Thread Scott Deboy
You can choose to add a fileAppender to Chainsaw's receiver configuration, so every event received by the Chainsaw UI would also end up in a file. Scott Deboy Principal Engineer COMOTIV SYSTEMS 111 SW Columbia Street Ste. 950 Portland, OR 97201 Office: 503.224.7496 Direct Line: 503.821.6482 Cell:

please help-chainsaw configuration

2007-06-12 Thread ashish talati
Hi there, I am using chainsaw to view my logs coming through remote host with socket appender-reciever pair. Everything is working fine,the logs are coming in the different Tab and I also saved the reciever config. through view-> application wide pref. However when I close the chainsaw

Re: Please help-chainsaw configuration

2007-06-12 Thread James Stauffer
You should probably use a file appender on the source application if the logs are that critical because network issues would prevent chainsaw from receiving the logs. On 6/12/07, ashish talati <[EMAIL PROTECTED]> wrote: Hi there, I am using chainsaw to view my logs coming through remote host w

Please help-chainsaw configuration

2007-06-12 Thread ashish talati
Hi there, I am using chainsaw to view my logs coming through remote host with socket appender-reciever pair. Everything is working fine,the logs are coming in the different Tab and I also saved the reciever config. through view-> application wide pref. However when I close the chainsaw

RE: How to handle log4j's internal exceptions

2007-06-12 Thread Stroboskop
ErrorHandler! That's it! Thanks a lot. But two more questions arise: - how do i set the error handler using the log4j.properties config? I only found xml config examples. - why is the ErrorHandler deprecated in log4j 1.3 (and with no substitute mechanism at that)? -- View this message in cont