You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Henrik Vendelbo <hv...@bluprints.com> on 2003/09/28 02:20:42 UTC
bad days and good days
Forgive me if the mail ends a bit dark. I have just spent 11 hours trying to
figure out what has broken in my otherwise quite stable Webapp.
First of all Log4j is an ingenious design. I like the performance and
flexibility gained by using things like class name hierachy and class path.
Today it just isnt working for me though :(
No matter what I do, I cant come up with a sensible paradigm for
configuration that will work in both production and development environment.
I spent most of the day, going over the documentation on log4j and various
ways of logging under Tomcat. Great article on commons-logging vs. Log4j :)
I saw a reference to how different web-applications can have different log4j
configurations in think again, but I am not sure where that is supposed to
be described. I have yet to see any explanation of how that is supported.
I have a log4j.proporties file in my WEB-INF/classes directory. But it
doesnt seem to have any effect.
Eventually I am now sitting at 1am, still brooding over how frustrating
broken applications are, waiting to find all log4j.properties files on my C:
drive that by now contains some 2 million files. Somehow the beauty of
loading configuration files from the class-path isnt very obvious to me atm.
So far I have located 13 property files excluding those in jar files. Im
pretty sure of most of them not being in the classpath. Yet, I am not
terribly certain. I didn't write the class-loader gimmicks for Tomcat, and
am no expert on how they work. So I might have a conflict going on.
1) I want to avoid by all means : environment variables
2) Parameters for the jvm is a bit crap as well, since Tomcat is running as
a service
3) All I really want is to configure Log4j individually per webapp
I know I must be number 10,000 in asking this questions. So where do I find
the answer.
Spending the whole day going over this, the most obvious implementation
seems to be a configuration tree. Is that already supported, or in the plans
?
- or is that discussion commons-logging/Tomcat domain ?
thanks for your time,
Henrik
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org