Hi,
I use MyEclipse 5.1 and Java 1.5, but apparently my log4j.properties is not read and the log level defaults to INFO level.
I placed my properties file (listed below) in the /src of my Web project.
I even set the following flags in Windows > Preferences > Tomcat 5 > JDK
-Dlog4j.debug -Dlog4j.configuration=${workspace_loc}/log4j.properties
Neither take effect. The other possibility is that the log4j.properties is not correct!!!
Regards,
Ramin
log4j.rootLogger=ALL, stdout, file
### direct log messages to stdout ###
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
### direct messages to file tl.log ###
log4j.appender.file=org.apache.log4j.FileAppender
# Windows
log4j.appender.file.File=C:/TL/workspace/TLWeb/WebRoot/WEB-INF/tl.log
# Unix Server
#log4j.appender.file.File=/home/sportlog/tmp/tl.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
# To log for specific package/class: log4j.logger.<path>=<LEVEL>
#log4j.logger.com.tl=FINEST
[/quote]