Re: [JBoss-user] Logging from within EJBs

2002-07-08 Thread Dimitri PISSARENKO
Hello! Thanks everyone, now logging works as desired! Dimitri On Mon, 8 Jul 2002 12:27:09 +0100, you wrote: >On Mon, Jul 08, 2002 at 12:42:30AM +0200, Dimitri PISSARENKO wrote: > > > >> does not work in my case (although logger.isDebugEnabled() returns >> true). >> >> Does someone know, how o

Re: [JBoss-user] Logging from within EJBs

2002-07-08 Thread Simon Stewart
On Mon, Jul 08, 2002 at 12:42:30AM +0200, Dimitri PISSARENKO wrote: > does not work in my case (although logger.isDebugEnabled() returns > true). > > Does someone know, how one can get the reference to the Logger from > wihin an EJB? I found that I needed to drop the Console appenders "Thresh

Re: [JBoss-user] Logging from within EJBs

2002-07-07 Thread Guy Rouillier
wraps it. - Original Message - From: "Andreas Kuckartz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 08, 2002 12:41 AM Subject: Re: [JBoss-user] Logging from within EJBs > > How can JBoss deprecate an interface in a separate package? > > C

Re: [JBoss-user] Logging from within EJBs

2002-07-07 Thread Andreas Kuckartz
> How can JBoss deprecate an interface in a separate package? Category has been deprecated by the log4j project: "This class has been deprecated and replaced by the Logger subclass. It will be kept around to preserve backward compatibility until mid 2003. Logger is a subclass of Category, i.e.

Re: [JBoss-user] Logging from within EJBs

2002-07-07 Thread Guy Rouillier
, July 07, 2002 10:29 PM Subject: Re: [JBoss-user] Logging from within EJBs > He *is* using log4j. Your suggestion below is a "deprecated" interface. > > I suspect that he is not looking in the right place for the debug > messages. > > Debug messages only appear in the l

Re: [JBoss-user] Logging from within EJBs

2002-07-07 Thread Stephen Coy
4 AM, Guy Rouillier wrote: > Use log4j, e.g., > >private final Category log = > Category.getInstance(getClass().getName()); > > - Original Message - > From: "Dimitri PISSARENKO" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Su

Re: [JBoss-user] Logging from within EJBs

2002-07-07 Thread Guy Rouillier
Use log4j, e.g., private final Category log = Category.getInstance(getClass().getName()); - Original Message - From: "Dimitri PISSARENKO" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 07, 2002 6:42 PM Subject: [JBoss-user] Logging from within

[JBoss-user] Logging from within EJBs

2002-07-07 Thread Dimitri PISSARENKO
Hello! I want some of the events in the life of my EJBs to be logged at debug level. The usual way to get an instance of Logger class ProjectBean ... { ... private Logger logger = Logger.getLogger(ProjectBean.class); } and invokation of if (logger.isDebugEnabled()) { logger.deb