0 Replies Latest reply on Mar 21, 2010 12:37 PM by Celinio Fernandes

    [JBoss 6.0.0 M2] Logging with org.jboss.logging.Logger or org.apache.log4j.Logger ?

    Celinio Fernandes Novice

      Hi,
      I am wondering which class I should use to add logs in my web applications.

      The classes org.jboss.logging.Logger and org.apache.log4j.Logger seem to have the same methods (error, fatal, info, debug ...).
      I have been using the org.jboss.logging.Logger  class for a long time but i am wondering how close it is to log4j.
      Which one should i use ? Also, does org.jboss.logging.Logger use the log4j framework ? I presume it does.

      Thanks for helping.