1 Reply Latest reply on Sep 10, 2008 2:16 AM by wolfc

    JBoss slf4j location information is wrongly logged

    wolfc

      For example the following line is outputed when scanning for entities:

      14:43:38,623 DEBUG [org.hibernate.ejb.packaging.AbstractJarVisitor:112] Searching mapped entities in jar/par: vfszip:/home/carlo/work/jboss-head/build/output/jboss-5.0.0.CR2/server/cts/tmp/jsr88/web_pkg_scope.ear/web_pkg_scope_web.war/WEB-INF/classes/

      It says line 112, while it should have been line 116.

      Line 112 is where org.jboss.slf4j.JBossLoggerAdapter uses Logger to log the message. And since Log4jLoggerPlugin makes the assumption that Logger is the caller class name, you end up with that line number.

        • 1. Re: JBoss slf4j location information is wrongly logged
          wolfc

          I think LoggerPlugin should be trimmed of it's 'log' methods to a single
          log method:

          void log(String fqcn, Priority prio, String message, Throwable cause);

          Then Logger can enter it's own fqcn for the convenience methods and expose the log method for usage in (slf4j) logging adapters.