⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 log4j.properties

📁 这个weblogging 设计得比较精巧
💻 PROPERTIES
字号:
# Properties for configuring Log4j for this application# This is the configuring for logging displayed in the Application Server# log4j.rootCategory=INFO, stdout, R, maillog4j.rootCategory=INFO, stdout, Rlog4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.layout=org.apache.log4j.PatternLayout# Pattern to output the caller's file name and line number.#log4j.appender.stdout.layout.ConversionPattern=%p [%t] [%c] %C{1}.%M(%L) | %m%nlog4j.appender.stdout.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} | %C{1}:%M | %m%nlog4j.appender.R=org.apache.log4j.RollingFileAppenderlog4j.appender.R.File=${catalina.base}/logs/roller.log# Keep two 1MB log backup fileslog4j.appender.R.MaxFileSize=1MBlog4j.appender.R.MaxBackupIndex=2log4j.appender.R.layout=org.apache.log4j.PatternLayout#log4j.appender.R.layout.ConversionPattern=%5p %t %c - %m%nlog4j.appender.R.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %C{1}:%M - %m%n# If programmed properly the most messages would be at DEBUG# and the least at FATAL.# Options are: DEBUG, INFO, WARN, ERROR, FATALlog4j.category.org.roller=INFOlog4j.category.com.ecyrd.jspwiki=ERRORlog4j.category.com.opensymphony.oscache=ERRORlog4j.category.net.sf.hibernate=ERRORlog4j.category.org.roller.business.utils=INFOlog4j.category.org.apache.struts=ERRORlog4j.category.org.tuckey.web.filters.urlrewrite=DEBUG#log4j.category.org.roller.presentation.MainPageAction=DEBUG#log4j.category.org.roller.presentation.pagecache.rollercache.LRUCacheHandler=DEBUG#log4j.category.org.roller.presentation.filters.IfModifiedFilter=DEBUG#log4j.category.org.roller.persistence.hibernate.HibernateStrategy=DEBUG# Tomcat's ClientAbortExceptions cause Velocity to talk way# too much so by default Velocity is set to STFU mode.log4j.category.org.apache.velocity=FATAL# Configuration for receiving e-mails when ERROR messages occur.#log4j.appender.mail=org.apache.log4j.net.SMTPAppender#log4j.appender.mail.To=you@yours.com#log4j.appender.mail.From=you@yours.com#log4j.appender.mail.SMTPHost=127.0.0.1#log4j.appender.mail.Threshold=ERROR#log4j.appender.mail.BufferSize=1#log4j.appender.mail.Subject=Roller Exception#log4j.appender.mail.layout=org.apache.log4j.PatternLayout#log4j.appender.mail.layout.ConversionPattern=%p [%d{yyyy-MM-dd HH:mm:ss,SSS}] %C{1}.%M(%L) | %m%n

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -