一个例子:
log4j.rootLogger=ERROR, logfilelog4j.appender.logfile=org.apache.log4j.DailyRollingFileAppenderlog4j.appender.logfile.datePattern='-'dd'.log'log4j.appender.logfile.File=log/radius-prod.loglog4j.appender.logfile.layout=org.apache.log4j.PatternLayoutlog4j.appender.logfile.layout.ConversionPattern=%-6r %d{ISO8601} %-5p %40.40c %x - %mnlog4j.logger.foo.bar.Baz=DEBUG, myappenderlog4j.additivity.foo.bar.Baz=falselog4j.appender.myappender=org.apache.log4j.DailyRollingFileAppenderlog4j.appender.myappender.datePattern='-'dd'.log'log4j.appender.myappender.File=log/access-ext-dmz-prod.loglog4j.appender.myappender.layout=org.apache.log4j.PatternLayoutlog4j.appender.myappender.layout.ConversionPattern=%-6r %d{ISO8601} %-5p %40.40c %x - %mn
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)