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.
I think LoggerPlugin should be trimmed of it's 'log' methods to a single
void log(String fqcn, Priority prio, String message, Throwable cause);