Chandra,

I strongly recommend against sub-classing Category to introduce new printing methods, 
you can use the general purpose log method instead. Sub-classing will cause you 
headaches. 

See also http://jakarta.apache.org/log4j/docs/manual/manual.html#N12BD

Regards, Ceki

ps: Log4j-dev is the wrong list by the way, log4j-user is preferred for this type of 
discussion.

At 11:45 27.11.2001 -0800, you wrote:
>From: Chandra Swaminathan
>
>Hi,
>
>I am a new log4j user and have been trying out some of the examples in the
>log4j (version 1.1.3) distribution.  Let me congratulate and thank you for
>a well conceived project.
>
>I apologize if my question is a repeat post.  I am trying to figure out if
>there is a possible bug or if I am doing something wrong in using the
>MyCategory.java example.  I ran the MyCategory example with the
>"mycat.good" properties file.  But, I see that the message in "c.trace" on
>line number 41does not get printed despite setting the priority of the
>MyCategory class to "TRACE".  So, I also tried setting the priority of the
>root category to TRACE instead of DEBUG in the properties file and ran the
>example. I still see the same result. That is, only the c.debug() message
>"Hello World" gets printed.
>
>Can someone help me figure out what I am possibly doing wrong.
>
>Chandra.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to