2 Replies Latest reply on Jul 19, 2007 6:43 AM by christian grobmeier

    isDebugEnabled is deprecated, why?

    christian grobmeier Newbie

      Hi there,

      i switched from Log4J to JBoss Log4J and figured out, that isDebugEnabled is deprecated. I am using AS 4.0.4

      My Code:

      if(log.isDebugEnabled()) {
       log.debug("Session invalid.");

      why is this? I find this method quite usefull. It seems i can have this function with:

      if(log.getLoggerPlugin().isDebugEnabled()) {
       log.debug("Constructed in=" + in);

      Is this the way to go or what are the reasons to have this deprecated?