LOGBACK的配置和使用
项目用到了logback,我自己参照了BLOG
http://www.cnblogs.com/luowei010101/archive/2012/01/04/2312438.html
slf4j-api-1.6.0.jarlogbcak-classic-0.9.21.jarlogbcak-core-0.9.21.jar
<?xml version="1.0" encoding="UTF-8"?><configuration scan="true" scanPeriod="5 minutes"><appender name="stdoutAppender" /><!-- 在本地的配置<property file="src\main\resources\applicationContext.properties" />--><appender name="FILE" /><appender-ref ref="FILE" /></root><logger name="com.digia" level="DEBUG"><appender-ref ref="FILE" /></logger></configuration>
#GUI log store pathgui.log.dir=/opt/xxx/xxx/logs#GUI log namegui.log.name=xxx.log#GUI log file mingui.log.file.min=1#GUI log file maxgui.log.file.max=5#GUI log file max sizegui.log.max.file.size=10MB#GUI log file rolling formatgui.log.rolling.format=xxx.%i.log