log4j.properties配置的好好 就是不按规定打印日志
log4j.rootLogger=debug,Console,file
log4j.logger.org.nutz.dao = debug
log4j.logger.org.nutz.ioc = debug
log4j.logger.freemarker = debug
log4j.logger.org.apache.commons = debug
log4j.logger.me.zouooh.mvc.quartz.QuartzIocLoader = debug
log4j.logger.org.nutz.mvc.impl.Loadings = debug
log4j.logger.org.tio.server = debug
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=[%-5p] %d{HH:mm:ss.SSS} %l - %m%n
log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
log4j.appender.file.DatePattern='-'yyyy-MM-dd-HH'.log'
log4j.appender.file.File= ${catalina.home}/logs/water-server/out
log4j.appender.file.Append=true
log4j.appender.file.Encoding=UTF8
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=[%-5p] %d{yyyy-MM-dd HH:mm:ss.SSS} %l - %m%n
按照上面配置,日志应该会打印到tomat目录下的logs/water-server目录下,在本地运行是没有问题的,成功输出到文件,但是在发到服务器中,总的日志文件里有日志,但是logs/water-server文件夹下就没日志,log4j包都加了,好奇怪...