log4j示例-Daily方式(log4j.properties)
log_home=./log
log4j.rootLogger=info
log4j.category.com.ai.toptea.collection=Console,DailyFile,DailyFileError
log4j.additivity.com.ai.toptea.collection=false
log4j.category.com.ai.toptea.collection.hub.api=Console,hubApi
log4j.additivity.com.ai.toptea.collection.hub.api=false
log4j.category.com.alibaba.dubbo=Console,dubbo
log4j.additivity.com.alibaba.dubbo=false
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern= [%d{yyyy-MM-dd HH\:mm\:ss\:SSS}][%p](%c{1}\:%L) - %m%n
log4j.appender.DailyFile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.DailyFile.Threshold =info
log4j.appender.DailyFile.File=${log_home}/collect.log
log4j.appender.DailyFile.encoding=utf-8
log4j.appender.DailyFile.Append=true
log4j.appender.DailyFile.layout=org.apache.log4j.PatternLayout
log4j.appender.DailyFile.layout.ConversionPattern=[%d{yyyy-MM-dd HH\:mm\:ss\:SSS}][%p](%c{1}\:%L) - %m%n
log4j.appender.DailyFileError=org.apache.log4j.DailyRollingFileAppender
log4j.appender.DailyFileError.Threshold =error
log4j.appender.DailyFileError.File=${log_home}/collect_error.log
log4j.appender.DailyFileError.encoding=utf-8
log4j.appender.DailyFileError.Append=true
log4j.appender.DailyFileError.layout=org.apache.log4j.PatternLayout
log4j.appender.DailyFileError.layout.ConversionPattern=[%d{yyyy-MM-dd HH\:mm\:ss\:SSS}][%p](%c{1}\:%L) - %m%n
log4j.appender.hubApi=org.apache.log4j.DailyRollingFileAppender
log4j.appender.hubApi.Threshold =info
log4j.appender.hubApi.File=${log_home}/hubApi.log
log4j.appender.hubApi.encoding=utf-8
log4j.appender.hubApi.Append=true
log4j.appender.hubApi.layout=org.apache.log4j.PatternLayout
log4j.appender.hubApi.layout.ConversionPattern=[%d{yyyy-MM-dd HH\:mm\:ss\:SSS}][%p](%c{1}\:%L) - %m%n
log4j.appender.dubbo=org.apache.log4j.DailyRollingFileAppender
log4j.appender.dubbo.Threshold =info
log4j.appender.dubbo.File=${log_home}/dubbo.log
log4j.appender.dubbo.encoding=utf-8
log4j.appender.dubbo.Append=true
log4j.appender.dubbo.layout=org.apache.log4j.PatternLayout
log4j.appender.dubbo.layout.ConversionPattern=[%d{yyyy-MM-dd HH\:mm\:ss\:SSS}][%p](%c{1}\:%L) - %m%n
org.apache.log4j.RollingFileAppender