Logging Outputs Incorrect Line Numbers in JBoss
Issue
-
When logging using the
%Lin thePatternLayoutconfiguration in the$JBOSS_HOME/server/$PROFILE/conf/jboss-log4j.xmllike<layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %-5p [%c:%L] (%t) %m%n"/> </layout>
The line numbers listed are incorrect:
2010-09-21 11:32:23,380 INFO [org.jboss.web.WebService:296] (main) Using RMI server codebase: http://127.0.0.1:8083/
In this case, it should be,
2010-09-21 11:32:23,380 INFO [org.jboss.web.WebService:309] (main) Using RMI server codebase: http://127.0.0.1:8083/
Environment
- JBoss Enterprise Application Platform (EAP)
- 5.0.1
- 5.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.