logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marish.Hirap...@alltelmd.com
Subject Re: Newbie cuestions
Date Thu, 04 Apr 2002 19:00:16 GMT


1. This should be determined by how much detail you want from your logs. We
have several different categories setup by functional area from our
application, so when we read the logs, we can just look within the
functional area we are interested in. If your project is small enough, you
may only need 1 logger. Some large apps may use hundreds.

2.  I have used the following line within my config.xml file to get the
class and line number with no problem.
<param name="ConversionPattern" value="CLASS=%C%nLine_No=%L"/>


"Enrique Rodriguez" <lasterra@telefonica.net> on 04/03/2002 11:22:16 PM

Please respond to "Log4J Users List" <log4j-user@jakarta.apache.org>

To:   "Log4J Users List" <log4j-user@jakarta.apache.org>

Subject:  Newbie cuestions

Hi all, i am testing log4j and I've two dudes(i have more but... ;-))

1.- How many Categories-logger must i define??? I try to explain it. I am
developing a component with EJBs. Is a good idea to define only one
to all the component???

2.- A like to see in my logs the line and the class where the log was.
This is my layout
) %m%n

In the logs, i get instead of F and L ? and ?. Why??? I compile my code

Regards, Enrique.
Enrique Rodriguez Lasterra

To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org

To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

View raw message