Enrique,

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"/>

-Manish





"Enrique Rodriguez" <[EMAIL PROTECTED]> on 04/03/2002 11:22:16 PM

Please respond to "Log4J Users List" <[EMAIL PROTECTED]>

To:   "Log4J Users List" <[EMAIL PROTECTED]>
cc:

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
category
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
log4j.appender.AppenderComponentes.layout.ConversionPattern=[%p,%c{1}]
(%F:%L
) %m%n

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

Regards, Enrique.
_____________________________
Enrique Rodriguez Lasterra


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








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

Reply via email to