AW: Changing log4j config on the fly with 'configureAndWatch()'

2001-06-11 Thread Herz . S
Hi Paul, Hi Ceki, now i understand the relationship between appenders and addivity better! I'm now able to use the 'category hierarchies' as used to be. Thanx Regards Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

AW: Changing log4j config on the fly with 'configureAndWatch()'

2001-06-08 Thread Herz . S
Hi Paul (and the others), this my log4j.xml file. During runtime i removed the 2 outcommenting lines. And later, i commented out again these category declarations. As i said, log4j recognize the new declarations during runtime, but has a problem when i 'remove' them during runtime. log4j:ERROR

Changing log4j config on the fly with 'configureAndWatch()'

2001-06-07 Thread Herz . S
Hi, i'm using log4j 1.1.2 with the following code in my servlet: String prefix = getServletContext().getRealPath("/"); String file = prefix + this.getServletContext().getInitParameter("LOG4J_XML_FILE"); DOMConfigurator.configureAndWatch(file, 1); I started Tomcat 3.2.1 with the option -Dlog

AW: DOMConfigurator & Tomcat - File location ?

2001-06-07 Thread Herz . S
Hi, according to my own questions i've now a kind of configuration that i would like to discuss with you. 1. Tomcat 3.2.1 is started with the system property -Dlog4j.configuration=log4j.xml 2. This log4j.xml is located in 'C:\jakarta-tomcat-3.2.1\classes' 3. A servlet at startup calls 'DOMConfigu

DOMConfigurator & Tomcat - File location ?

2001-06-06 Thread Herz . S
Hi, i'm using Tomcat 3.2.1 and log4j 1.1.1. I'm still confused about the location of the log4j.xml file when i want use the DOMConfigurator. I've a servlet that calls in his init() method 'DOMConfigurator.configure();' But my log4j.xml has never been found. It's always using some kind of default

What's about that appended String in the outputline with ',says ...' ?

2001-05-23 Thread Herz . S
Hello, sometimes my output lines have an added String ', says myClassA.myClassB.myClassC'. Does this depend on the log4j versions out there? Is this a format option? How can i get rid of that? Regards Stefan P.S. Using log4j-1.1.1

Confusing about XML with 'log4j:'

2001-05-17 Thread Herz . S
Hello, i'm confused about some xml sample files. They use 'log4j:configuration' at several lines : . I started with that, but I got always errors like: log4j:ERROR Could not parse input stream [java.io.FileInputStream@21c887]. java.lang.NullPointerException at org.apache.crimso