[jboss-dev-forums] [Other JBoss Development Design] - JBoss slf4j location information is wrongly logged

wolfc do-not-reply at jboss.com
Wed Sep 10 02:14:45 EDT 2008


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175476#4175476

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4175476



More information about the jboss-dev-forums mailing list