Re: Problem with adding double quotes in a conversion pattern for PatternLayout specified in an XML configuration

2003-11-21 Thread Jacob Kjome
Have you tried " Jake At 04:47 PM 11/21/2003 +0100, you wrote: Hi everyone, I have a problem with adding double quotes in a conversion pattern for PatternLayout specified in an XML configuration. Let's see the XML configuration fragment :

RE: setting up multiple log4j configurations for multiple WAR pac kage s?

2003-11-21 Thread Jacob Kjome
Does JRun not load from the WebappClassLoader first? Tomcat does this, and I believe the servlet spec defines this behavior (but don't quote me on that). Sounds like the same thing JBoss does by default. The way Tomcat works makes things much easier to work with since libraries in the server

RE: Concurrency and performance degradation

2003-11-21 Thread Shapira, Yoav
Howdy Firstly, log4j already has a FAQ, and moreover it's wiki so you can put your money where your mouth is. Secondly, I don't think this is technically a FAQ as it's asked very rarely (about once in six months I think). Yoav Shapira Millennium ChemInformatics >-Original Message- >F

Re: Concurrency and performance degradation

2003-11-21 Thread Horst Scheruga
Date: Fri, 21 Nov 2003 18:48:31 +0100 (MET) From: "Horst Scheruga" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: Concurrency and performance degradation This problem seems very common to me. Costs me 2 days to figure out the trivial and obviousliy reason in my case. I your question I fou

RE: Concurrency and performance degradation

2003-11-21 Thread Shapira, Yoav
Howdy, I don't know, I haven't used it, as I haven't found the need for it. What I do in high-load environment is surround INFO and DEBUG level statements with is-enabled checks (Logger.isDebugEnabled() etc.), which reduces their overhead by nearly 100%. I don't have INFO and DEBUG enabled in pro

RE: Concurrency and performance degradation

2003-11-21 Thread Campos Rui Oliveira
Hi. Thanks for the reply. What are the implications of using an AsyncAppender? With AsyncAppender don't i have an high probability of get a confused log with lines cutted at half by other lines that are being added? Rui Campos -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROT

RE: Concurrency and performance degradation

2003-11-21 Thread Shapira, Yoav
Howdy, >There is anyway to improve the performance in a concurrency environment >(maybe defining a buffer size and have only one thread writing to the file >and to the console? ) and prevent this concurrency problems? >If, instead of having the logger for each class as a static variable, if i >ha

Concurrency and performance degradation

2003-11-21 Thread Campos Rui Oliveira
Hi, everyone. I'm stress testing a J2EE application and in certain executions (it is not happening always for the same conditions, maybe in 10% of the cases), i have got terrible times for a test case, and when i go and analyze where the most of the time is consumed, i realized that there is at

RE: setting up multiple log4j configurations for multiple WAR pac kage s?

2003-11-21 Thread Yuzwa, Erik
Hi Ken, Thanks for the reply. That's a good idea, and that should (logically) work. We're using JRun as our servlet engine, and I've discovered that on a global level, it loads up a log4j.properties file which is buried in one of the .jars that ships with the product. This one seems to be trumpin

Problem with adding double quotes in a conversion pattern for PatternLayout specified in an XML configuration

2003-11-21 Thread Noel Sebastien (BIL)
Hi everyone, I have a problem with adding double quotes in a conversion pattern for PatternLayout specified in an XML configuration. Let's see the XML configuration fragment :

RE: setting up multiple log4j configurations for multiple WAR pac kage s?

2003-11-21 Thread Ken . Liu
IMHO, the simplest and easiest configuration to maintain is to place log4j.jar in WEB-INF/lib and log4j.xml in WEB-INF/classes in each WAR. This should work fine without any additional server configuration. You should not have log4j.jar in your server's classpath or logging won't be separate betw

how to set log4j.ignoreTCL in XML config file

2003-11-21 Thread Kloeck, Erwin
Hi, I want to use log4j and junit together. I discovered that for this to work I have to set the system property log4j.ignoreTCL=true. When I do this with the -D option it works. Can I set this property in my log4jconfig.xml file as well? And if so, how would I do this. Thanks for your help ..

setting up multiple log4j configurations for multiple WAR package s?

2003-11-21 Thread Yuzwa, Erik
Hi all, I'm sorry if this is a FAQ, as I've looked everywhere and can't find very many resources on setting up multiple log4j configurations for different WAR packages (ie. a seperate set of log files for each WAR app). I've tried including a log4j.xml and log4j.blah.jar file with each WAR, but t

Re: logj, EJBs, JBoss revisited (design issues)

2003-11-21 Thread Stefan Puiu
Hello and thanks for replying, Well, our design is slightly more complicated, since the logging classes also need database access, and the logging classes in module A uses for example the datasource java:/A, so as the logging part is designed right now you can't view the classes as a library bu