- This topic has 2 replies, 1 voice, and was last updated 18 years, 10 months ago by z979961.
-
AuthorPosts
-
z979961MemberMyeclipse default only show the info.
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
z979961MemberSorry for posting it again. I don’t know how to delete this post.
z979961MemberOne more question. I don’t know if anyone else got the same problem but looks like I can’t change the color of the font in the log console. I went to the Preferences->General->Apearance->Colors and Fonts->Debug->Console font and tried couple times and it didn’t work.
-
AuthorPosts