1 Reply Latest reply: May 3, 2012 1:07 PM by James Perkins RSS

    Need Logger class instance

    Gajendra Rathore Newbie

      I am switch my project from Jboss 4 to Jboss 7.

       

      In Jboss 4 getting Logger class instance from below code but in Jboss 7 it is return back BridgeLogger instance, which is a final class.  How can I get Logger class instance ?

       

      Throwable t = new Throwable();

      StackTraceElement directCaller = t.getStackTrace()[1];

      Object logger = Logger.getLogger(directCaller.getClassName(), factory);

       

       

      Need help

       

      Thanks,

      Gajendra