|
Re: Logging from within EJBs: msg#00271java.jboss.user
How can JBoss deprecate an interface in a separate package? I see what you are referring to - jboss-all\common\src\main\org\jboss\logging\Logger.java wraps Category so it can introduce Trace level logging. I wasn't aware of this - thanks for pointing it out. I don't necessarily agree with it (since Log4j is a standalone package, I think it would be better to stay compatible with it.) We are, of course, free to continue to use the Category interface. ----- Original Message ----- From: "Stephen Coy" <steve@xxxxxxxxxxxxxxxxxx> To: <jboss-user@xxxxxxxxxxxxxxxxxxxxx> Sent: Sunday, 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 log/server.log file, not on the > console. > > This works for us btw. > > > On Monday, July 8, 2002, at 11:34 AM, Guy Rouillier wrote: > > > Use log4j, e.g., > > > > private final Category log = > > Category.getInstance(getClass().getName()); > > > > ----- Original Message ----- > > From: "Dimitri PISSARENKO" <dimitri.pissarenko@xxxxxxx> > > To: <jboss-user@xxxxxxxxxxxxxxxxxxxxx> > > Sent: Sunday, July 07, 2002 6:42 PM > > Subject: [JBoss-user] Logging from within EJBs > > > > > > 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.debug("...") > > } > > > > 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? > > > > Thanks > > > > Dimitri Pissarenko > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > We have stuff for geeks like you. > > http://thinkgeek.com/sf > > _______________________________________________ > > JBoss-user mailing list > > JBoss-user@xxxxxxxxxxxxxxxxxxxxx > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > We have stuff for geeks like you. > > http://thinkgeek.com/sf > > _______________________________________________ > > JBoss-user mailing list > > JBoss-user@xxxxxxxxxxxxxxxxxxxxx > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > We have stuff for geeks like you. > http://thinkgeek.com/sf > _______________________________________________ > JBoss-user mailing list > JBoss-user@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/jboss-user > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek We have stuff for geeks like you. http://thinkgeek.com/sf
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Logging from within EJBs, Stephen Coy |
|---|---|
| Next by Date: | Re: Logging from within EJBs, Andreas Kuckartz |
| Previous by Thread: | Re: Logging from within EJBs, Stephen Coy |
| Next by Thread: | Re: Logging from within EJBs, Andreas Kuckartz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |