Re: Chainsaw

2006-08-14 Thread Raúl Santiago
Takacs Bence escribió: I have successfully configured the ZeroConf feature of chainsaw. Follow the instructions, add all the required and depending jars. It works with both sides (logging app and Chainsaw) in the same computer or in different ones. Appender XML log4j config:

Re: problems with SMTPAppender under tomcat

2006-08-14 Thread Takacs Bence
I meant different config files. If you move the lib/log4j.jar and classes/log4j.properties from the shared classpath (i.e. tomcat/common) to each webapp (i.e. webapps/app/WEB-INF) then each app will use a separate config file. ...but If you want all projects to use the same config

different config files for different tomcat applications

2006-08-14 Thread Takacs Bence
Hello James Stauffer wrote: I meant different config files. If you move the lib/log4j.jar and classes/log4j.properties from the shared classpath (i.e. tomcat/common) to each webapp (i.e. webapps/app/WEB-INF) then each app will use a separate config file. I deleted the common

xml vs. properties

2006-08-14 Thread Takacs Bence
Hello Why everybody use xml file instead of properties file? It's twice as much typing as the properties file... Does it have any additional function? Or is there a kind of editor which makes it easier to use? Thanks: Bence

Re: Log4j 1.2.9, 64-bit, Websphere Performance Problems

2006-08-14 Thread matt.accola
What can I do to get some help on this issue? Please let me know if I can provide more information? I have opened a ticket with IBM but I think the Log4j community will probably be more helpful. -- View this message in context:

Newbie – log4j and syslog-ng setup

2006-08-14 Thread theMonkyBoy
Hi, sorry for this post, but I've been searching for a couple of days now and found nothing to help me get started via google! In our environment we currently have a cluster of J2EE servers, where each member writes to their own log file. Now we would like to also write to one consolidated

Re: xml vs. properties

2006-08-14 Thread Thomas Kathmann
Hi, Why everybody use xml file instead of properties file? It's twice as much typing as the properties file... personally, the properties files look too much like voodoo for my tastes and I think the xml files are much easier to read. Does it have any additional function? Or is there a kind

Re: different config files for different tomcat applications

2006-08-14 Thread Takacs Bence
Well, sometimes neither of them writes the log, sometimes both of them uses the SocketAppender... As if in every tomcat restart it would have throw a dice... the only message: log4j:WARN No appenders could be found for logger (org.apache.commons.digester.D igester.sax). log4j:WARN Please

New RollingFileAppender implementation

2006-08-14 Thread Mohsen Saboorian
Hi, I was using the following parameters with my log4j-1.2.x RollingFileAppender appender. param name=maxFileSize value=500KB / param name=maxBackupIndex value=3 / param name=threshold value=WARN / Now in 1.3, the new impl. of RollingFileAppender, these parameters seems to go. Is there any kind

Re: problems with SMTPAppender under tomcat

2006-08-14 Thread James Stauffer
Sorry I wasn't clear. The only way to have them use a common config is to use a common config file. I was trying to make the point that by using the common config file you are grouping all of your applications together somewhat. On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote: I meant

Re: Newbie – log4j and syslog-ng setup

2006-08-14 Thread James Stauffer
You only showed your appender config. Are you use the messages are getting to the appender. If you run with -Dlog4j.debug it might give you helpful info. On 8/14/06, theMonkyBoy [EMAIL PROTECTED] wrote: Hi, sorry for this post, but I've been searching for a couple of days now and found

Re: xml vs. properties

2006-08-14 Thread James Stauffer
The XML format does support more things than the properties format and I think it is much easier to read. On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote: Hello Why everybody use xml file instead of properties file? It's twice as much typing as the properties file... Does it have any

Re: different config files for different tomcat applications

2006-08-14 Thread James Stauffer
Did you move log4j.properties also? You will need to do that too. On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote: Hello James Stauffer wrote: I meant different config files. If you move the lib/log4j.jar and classes/log4j.properties from the shared classpath (i.e. tomcat/common) to each

Re: Newbie – log4j and syslog-ng setup

2006-08-14 Thread theMonkyBoy
Hi James, Thanks for your reply. James Stauffer wrote: You only showed your appender config. Are you use the messages are getting to the appender. Here is my complete log4j.xml configuration file: ?xml version=1.0 encoding=UTF-8? !DOCTYPE log4j:configuration SYSTEM log4j.dtd

IO error while logging

2006-08-14 Thread Mike Baranczak
I'm seeing an intermittent error on one of our jboss servers. Every once in a while, something happens to the logging system, and every attempt to write to the log causes an exception (see below), which of course is of major concern to us. So far, this is only happening on one box. I'm

tomcat with log4j?

2006-08-14 Thread Takacs Bence
Hello I'm using log4j, but tomcat seems to use the sun java logger. Are there any way to catch its logs, or make it use log4j instead? Thanks: Bence - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Newbie – log4j and syslog-ng setup

2006-08-14 Thread James Stauffer
Ok then I don't have any more advice because I hadn't used that appender. On 8/14/06, theMonkyBoy [EMAIL PROTECTED] wrote: Hi James, Thanks for your reply. James Stauffer wrote: You only showed your appender config. Are you use the messages are getting to the appender. Here is my

Re: different config files for different tomcat applications

2006-08-14 Thread Takacs Bence
I _only_ moved log4j.properties from shared/classes to two different webapps/app/WEB-INF/classes directory. In other words I deleted the original file and made two different copies (with the required modifications of course). Both projects has it's own log4j.jar too. Thanks: Bence

Re: tomcat with log4j?

2006-08-14 Thread James Stauffer
Tomcat uses Apache commons logging which will use sun logging if log4j isn't found. You can configure commons logging to use log4j. On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote: Hello I'm using log4j, but tomcat seems to use the sun java logger. Are there any way to catch its logs, or

Re: different config files for different tomcat applications

2006-08-14 Thread Takacs Bence
No James Stauffer wrote: Is there a log4j.jar under shared or common? On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote: I _only_ moved log4j.properties from shared/classes to two different webapps/app/WEB-INF/classes directory. In other words I deleted the original file and made two different

Re: different config files for different tomcat applications

2006-08-14 Thread James Stauffer
Try running with -Dlog4j.debug. That should give you more info about the problem. On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote: No James Stauffer wrote: Is there a log4j.jar under shared or common? On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote: I _only_ moved log4j.properties from

Re: Log4j 1.2.9, 64-bit, Websphere Performance Problems

2006-08-14 Thread Endre Stølsvik
matt.accola wrote: What can I do to get some help on this issue? Please let me know if I can provide more information? I have opened a ticket with IBM but I think the Log4j community will probably be more helpful. Have you tried to do profiling of the application or the test-case while it

Re: Log4j 1.2.9, 64-bit, Websphere Performance Problems

2006-08-14 Thread matt.accola
Thanks for the reply! The scenario is that my customer has the 64-bit machine and I have only 32-bit systems for testing. That's a problem because they will not allow me to run our profiler on their environment :( I cannot replicate in the 32-bit environment so I can't profile here. I am

Re: different config files for different tomcat applications

2006-08-14 Thread Jacob Kjome
Is there a log4j.xml anywhere on the classpath (in the default package, that is)? Look in directories and jars. I would suggest changing to an XML config file because Log4j looks for it first. If it doesn't find log4j.xml, then it looks for log4j.properties. I've seen this happen so often to

Re: Log4j 1.2.9, 64-bit, Websphere Performance Problems

2006-08-14 Thread Endre Stølsvik
If you take a look at my test cases, I did isolate the file I/O. One of the tests writes 1000 statements to the servlet console, which I assume uses STDOUT. That is blazing fast. Why don't you just try to write some garbage to a file for testing? Maybe go to the RollingFileAppender's source

Re: IO error while logging

2006-08-14 Thread Mike Baranczak
On Aug 14, 2006, at 2:40 PM, Curt Arnold wrote: On Aug 14, 2006, at 10:22 AM, Mike Baranczak wrote: I'm seeing an intermittent error on one of our jboss servers. Every once in a while, something happens to the logging system, and every attempt to write to the log causes an exception (see

Re: Dynamic Logger in EJB

2006-08-14 Thread theMonkyBoy
Hello Sudhakar, What you want to do is check the http://logging.apache.org/log4j/docs/api/org/apache/log4j/PropertyConfigurator.html PropertyConfigurator class, in particulat the