paip.log4j兼容linux windows 路径设置

paip.log4j兼容linux windows 路径设置





作者Attilax  艾龙,  EMAIL:1466519819@qq.com 

来源:attilax的专栏

地址:http://blog.csdn.net/attilax

 

log4j.appender.A1.File=/Users/zhengzb/dev/resin-4.0.32/log/homiServer.log





实际上windows ::

"C:\Users\zhengzb\dev\resin-4.0.32\log\homiServer.log"





--------------setting..

log4j.rootLogger=INFO,stdout,A1

log4j.appender.stdout=org.apache.log4j.ConsoleAppender

log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %5p [%t%x] %c{1} %L - %m%n









log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender

log4j.appender.A1.File=/Users/zhengzb/dev/resin-4.0.32/log/homiServer.log

log4j.appender.A1.layout=org.apache.log4j.PatternLayout

log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n





log4j.logger.org.apache=WARN

log4j.logger.org.springframework=ERROR 

log4j.logger.org.apache.ibatis=ERROR 

log4j.logger.java.sql.Connection=ERROR

log4j.logger.java.sql.Statement=ERROR

上一篇:写给java web一年左右工作经验的人


下一篇:pycharm 设置参数,快捷键