You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Enrique Rodriguez <la...@telefonica.net> on 2002/04/04 06:22:16 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Loggin into a DB.

Posted by Matt Egyhazy <mw...@virginia.edu>.
yes
----- Original Message -----
From: "Han Solo" <fj...@yahoo.com>
To: "Log4J Users List" <lo...@jakarta.apache.org>
Sent: Thursday, April 04, 2002 2:21 AM
Subject: Loggin into a DB.


>    Hi:
>
>       I started to use the Log4J and I would like to
> know if it is possible to use it to log into a
> database instead of a filesystem?
>
>
>    Regads
>    Francisco Jaen Alegria
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Loggin into a DB.

Posted by Kevin Steppe <ks...@pacbell.net>.
Certainly... Use the JDBCAppender, it's in the cvs under package
org.apache.log4j.jdbc

Kevin


Han Solo wrote:

>    Hi:
>
>       I started to use the Log4J and I would like to
> know if it is possible to use it to log into a
> database instead of a filesystem?
>
>    Regads
>    Francisco Jaen Alegria
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Loggin into a DB.

Posted by Han Solo <fj...@yahoo.com>.
   Hi:

      I started to use the Log4J and I would like to
know if it is possible to use it to log into a
database instead of a filesystem?


   Regads
   Francisco Jaen Alegria

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>