Hello,
I am using appfuse 1.9.4 in Tomcat 6.0.14 and log4j-1.2.13.jar. Below is
the /WEB-INF/classes/log4j.properties contain
# This is the configuring for logging displayed in the Application Server
log4j.rootCategory=INFO, stdout
# Replace the line above if you want to put a log file into the directory
# you start Tomcat from
# log4j.rootCategory=INFO, stdout, R
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=[stufftolet] %p [%t]
%c{1}.%M(%L) | %m%n
log4j.appender.R=org.apache.log4j.RollingFileAppender
# You can change this to be an absolute path or even an environment variable
# If you're using an environment variable, you will have to set JAVA_OPTS
# to contain this variables - for example in the catalina.sh or catalina.bat
# file
log4j.appender.R.File=c:/apache/tomcat6/logs/stufftolet.log
log4j.appender.R.MaxFileSize=50000KB
# Don't keep a backup file
log4j.appender.R.MaxBackupIndex=0
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
# Configuration for receiving e-mails when ERROR messages occur.
log4j.appender.mail=org.apache.log4j.net.SMTPAppender
[EMAIL PROTECTED]
[EMAIL PROTECTED]
log4j.appender.mail.SMTPHost=stufftolet.com
log4j.appender.mail.Threshold=ERROR
log4j.appender.mail.BufferSize=1
log4j.appender.mail.Subject=[stufftolet.com] Stufftolet Application Error
log4j.appender.mail.layout=org.apache.log4j.PatternLayout
log4j.appender.mail.layout.ConversionPattern=%d %-5p %c %x - %m%n
# If programmed properly the most messages would be at DEBUG
# and the least at FATAL.
log4j.logger.com.stufftolet=DEBUG
log4j.logger.com.stufftolet.webapp.filter=ERROR
log4j.logger.com.stufftolet.webapp.listener.UserCounterListener=WARN
log4j.logger.com.stufftolet.util=WARN
# Control logging for other open source packages
log4j.logger.com.opensymphony.oscache=ERROR
log4j.logger.net.sf.navigator=ERROR
log4j.logger.org.acegisecurity=WARN
log4j.logger.org.acegisecurity.intercept.event.LoggerListener=WARN
log4j.logger.org.apache.commons=ERROR
# Suppress warnings from VariableResolverImpl.resolveVariable
log4j.logger.org.apache.myfaces=WARN
log4j.logger.org.displaytag=ERROR
log4j.logger.org.springframework=WARN
log4j.logger.com.ibatis.db=WARN
log4j.logger.org.apache.velocity=WARN
log4j.logger.org.tuckey.web.filters=WARN
# Don't show debug logs for WebTest
log4j.logger.com.canoo.webtest=WARN
# All hibernate log output of "info" level or higher goes to stdout.
# For more verbose logging, change the "info" to "debug" on the last line.
log4j.logger.org.hibernate.ps.PreparedStatementCache=WARN
log4j.logger.org.hibernate=WARN
# Changing the log level to DEBUG will result in Hibernate generated
# SQL to be logged.
log4j.logger.org.hibernate.SQL=ERROR
# Changing the log level to DEBUG will result in the PreparedStatement
# bound variable values to be logged.
log4j.logger.org.hibernate.type=ERROR
but after starting my web app, the c:/apache/tomcat6/logs/stufftolet.log
file never get created. Please advice, Thanks !
regards,
Mark
--
View this message in context:
http://www.nabble.com/log4j-issue-tf4691773s2369.html#a13409736
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]