Just to jump in here... Read the log4j docs - it's a singleton which you
can call from anywhere - you're log message will get there. The log4j
component in jboss simply initializes it on server startup. So, just
follow the log4j examples and you'll be fine. 

James

> -----Original Message-----
> From: Marco Tedone [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 01, 2003 9:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Is there a logger service available 
> - To Guy Rouillier
> 
> 
> Sorry, I'm just coming from a quite complex log4j 
> implementation with Struts, and I'm using EJBs just as 
> business components to query the database, so I am not an EJB 
> expert. What do you mean with category? Could you please 
> provide an example?
> 
> Thanks,
> 
> Marco
> 
> > --__--__--
> > 
> > Message: 3
> > Date: Mon, 31 Mar 2003 16:22:06 -0500
> > From: Guy Rouillier <[EMAIL PROTECTED]>
> > To:  [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Is there a logger service available
> > from Jboss?
> > Reply-To: [EMAIL PROTECTED]
> > 
> > Marco Tedone wrote:
> > > Hi, I know that Jboss uses log4j; is there any service
> > available which
> > > I could call from one of my Session Bean instead of
> > implementing all
> > > the logger architecture [something like Log logger =
> > > (Log)context.lookUp("java:/Logger"); ]
> > > 
> > 
> > What architecture?  All you have to do to use log4j in an EJB
> > is define the category (1 line of code) and then 
> log.error(), log.info(),
> etc. 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: ValueWeb: 
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to