hi all,
I have derived a Logger class MyLogger from org.apache.log4j.Logger.
Everything seems to work fine except for the logging output. The logger name
displayed is *allways* set to MyLogger not the logger name that has been
requested. I checked Logger.getName() and it is returning correctly th
Is this problem reproducible?
By the way, in 1.1.3. line 753 in Category.java is javadoc not an
executable java statement. So the following line
at org.apache.log4j.Category.isDebugEnabled(Category.java:753)
is somewhat suspicious. Can you check what line 753 corresponds to in
your copy of
Ah, that sounds like the problem. No I didn't configure additivity at
all. I'm using an XML file and I don't remember seeing an additivity
attribute in the DTD. I'm at home now but I'll check it out tomorrow in
the office.
Thanks alot
Adam
Ebersole, Steven wrote:
>Sorry, brain-fart, should
Sorry, brain-fart, should be:
log4j.rootLogger=ERROR, A1
log4j.logger.myDefinedLogger=DEBUG, A2
log4j.logger.additivity.myDefinedLogger=false
Steve Ebersole
IT Integration Engineer
Vignette Corporation
512.741.4195
Visit http://www.vignette
Did you set the additivity flag to false on the second logger?
You should have something like:
log4j.rootLogger=ERROR, A1
log4j.myDefinedLogger=DEBUG, A2
log4j.additivity.myDefinedLogger=false
Steve Ebersole
IT Integration Engineer
Vignette
Hi All,
I've configured the root logger to put all errors & fatals in a log file.
My problem comes when I configure a second logger. My second logger
passes all debug & above to the console. However as soon as I configure
this second logger, the root logger also sends all debug & above to the
We have been using log4j (v113) successfully for some time now with
Weblogic 6.1and J2SE 1.3.1_02 on Sun Solaris.
We have just started experiencing what appears to be a log4j problem (!!)
in one of our environments.
At startup time log4j is configured successfully , but when a call is made
to isDe
Try
etc..
That's "log4j.dtd", not "C:/Program Files/.../log4j.dtd".
At 19:24 10.07.2002 +0800, you wrote:
>I am using the Tomcat4.0 and struts for my web app.
>
>we have written the following loginconfig.xml
>
>
>please some one can help on this...most urgent
>
>
>
>4.0/webapps/log4j.dtd">
>
I am using the Tomcat4.0 and struts for my web app.
we have written the following loginconfig.xml
please some one can help on this...most urgent
http://jakarta.apache.org/log4j/";>
when i run the parser class,in which i had used the follwoing meth
Dear sir:
Would you please give me a example of SMTPAppender£¬thank you !
CuiFang
From ChangChun , China
10 matches
Mail list logo