I defined following log4j.properties and put it under my web application’s source folder. but looks like i still can not see the debug message.
# Log4J Configuration File
# This file specifies two different logs
#
# 1. Main Application Log
# 2. Access Log of users attempting to log into the system
# The root logging configuration
log4j.rootCategory=DEBUG, rolling, stdout
log4j.logger.accessLogger=DEBUG, accessFile
# Define console appender
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ddMMMyy HH:mm:ss} %-5p %c %x – %m%n
# Define application log appender
log4j.appender.rolling=org.apache.log4j.RollingFileAppender
log4j.appender.rolling.File=C:\\Servers\\logs\\mydom\\application.log
log4j.appender.rolling.MaxFileSize=100KB
log4j.appender.rolling.MaxBackupIndex=5
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d{ddMMMyy HH:mm:ss} %-5p %c %x – %m%n
#Define access log appender
log4j.appender.accessFile=org.apache.log4j.RollingFileAppender
log4j.appender.accessFile.File=C:\\Servers\\logs\\mydom\\access.log
log4j.appender.accessFile.MaxFileSize=100KB
log4j.appender.accessFile.MaxBackupIndex=5
log4j.appender.accessFile.layout=org.apache.log4j.PatternLayout
log4j.appender.accessFile.layout.ConversionPattern=%d{ddMMMyy HH:mm:ss} %x – %m%n