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 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user