[jboss-user] [Installation, Configuration & Deployment] - log4j and Jboss-4.0.5 GA

lluo do-not-reply at jboss.com
Tue Jan 2 16:47:34 EST 2007


I have a question on using log4j in JBoss-4.0.5 environment. I have "log4j.properties" file under my web application /WEB_INF/classes directory 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
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 the entry in the log file does not correctly show the file name (Welcome.java) and its line number (see below):

01/02/2007 16:32:52 EST INFO  [Welcome] (Log4JLogger.java:94) forward to "Welcome.jsp"

Is there any JBoss configuation I need do to make loj4j works as expected?

Thanks,

Laiwu

 



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

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



More information about the jboss-user mailing list