[jboss-user] [JBossWS] - log4j and Jboss-4.0.5 GA
lluo
do-not-reply at jboss.com
Tue Jan 2 15:01:44 EST 2007
I start to use JBoss and have a question on using log4j in JBoss-4.0.5 environment. In my web application /WEB-INF/class foler, I have "log4j.properties" file as follows:
# Set root logger level to error, and specify a file appender
log4j.rootLogger=error, File
###### File appender definition #######
log4j.appender.File=org.apache.log4j.RollingFileAppender
log4j.appender.File.File=c:/logs/myApp.log
log4j.appender.File.MaxFileSize=50MB
log4j.appender.File.MaxBackupIndex=1
log4j.appender.File.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name and line number.
log4j.appender.File.layout.ConversionPattern=%d{MM/dd/yyyy HH:mm:ss z} %-5p [%c(1)] (%F:%L) %m%n
log4j.logger.com.covisint.hie=DEBUG
But in the log, the message are shown as follows:
01/02/2007 14:29:31 EST DEBUG [Welcome] (Log4JLogger.java:84) forward to "Welcome.jsp"
The file name (Welcome.java) and its line number are not being shown. correctly. Are there some configuration steps I have missed?
Thanks,
Laiwu Luo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997351#3997351
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997351
More information about the jboss-user
mailing list