eis/config/conf/App4Log.cfg

50 lines
2.6 KiB
INI
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

log4cplus.rootLogger=DEBUG,RollFile
log4cplus.appender.Console=log4cplus::ConsoleAppender
log4cplus.appender.Console.layout=log4cplus::PatternLayout
log4cplus.appender.Console.layout.ConversionPattern=%D{%Y-%m-%d %H:%M:%S:%%q}|%p|%m %n
#可以根据你预先设定的大小来决定是否转储当超过该大小后续log信息会另存到新文件中。
#当存储的文件数目超过maxBackupIndex+1时会删除最早生成的文件保证整个文件数目等于maxBackupIndex+1。
#文件类型的appender可以设置ImmediateFlush来决定立即输出或是缓冲输出ImmediateFlush=true效率低可靠性高每次操作均会flush
#默认情况下日志名称文件由初始化时传入FileAppend=true时采用File配置的文件名输出
log4cplus.appender.RollFile=log4cplus::RollingFileAppender
log4cplus.appender.RollFile.FileAppend=false
log4cplus.appender.RollFile.File=file.log
log4cplus.appender.RollFile.Append=true
log4cplus.appender.RollFile.ImmediateFlush=true
log4cplus.appender.RollFile.MaxFileSize=10240000
log4cplus.appender.RollFile.MaxBackupIndex=3
log4cplus.appender.RollFile.layout=log4cplus::PatternLayout
log4cplus.appender.RollFile.layout.ConversionPattern=%D{%Y-%m-%d %H:%M:%S:%%q}|%p|%m %n
#可以根据你预先设定的频度来决定是否转储当超过该频度后续log信息会另存到新文件中
#这里的频度包括MONTHLY每月、WEEKLY每周、DAILY每日、TWICE_DAILY每两天、HOURLY每时、MINUTELY每分
#RollingFileAppender和DailyRollingFileAppender部分同时只能有一部分放开
#log4cplus.rootLogger=DEBUG, Console,DailyRollFile
#log4cplus.appender.DailyRollFile=log4cplus::DailyRollingFileAppender
#log4cplus.appender.DailyRollFile.FileAppend=false
#log4cplus.appender.DailyRollFile.File=app.log
#log4cplus.appender.DailyRollFile.Append=true
#log4cplus.appender.DailyRollFile.Schedule=MINUTELY
#log4cplus.appender.DailyRollFile.ImmediateFlush=true
#log4cplus.appender.DailyRollFile.MaxBackupIndex=5
#log4cplus.appender.DailyRollFile.layout=log4cplus::PatternLayout
#log4cplus.appender.DailyRollFile.layout.ConversionPattern=%D{%m/%d/%Y %H:%M:%S:%%q} %p: %m %n
log4cplus.appender.TagRollFile=log4cplus::RollingFileAppender
log4cplus.appender.TagRollFile.FileAppend=false
log4cplus.appender.TagRollFile.File=file.log
log4cplus.appender.TagRollFile.Append=true
log4cplus.appender.TagRollFile.ImmediateFlush=true
log4cplus.appender.TagRollFile.MaxFileSize=10240000
log4cplus.appender.TagRollFile.MaxBackupIndex=10
log4cplus.appender.TagRollFile.layout=log4cplus::PatternLayout
log4cplus.appender.TagRollFile.layout.ConversionPattern=%D{%Y-%m-%d %H:%M:%S:%%q}|%p|%m %n
#根据日志文件名称自定义loglevel级别和appender
log4cplus.TagAdmin=DEBUG,TagRollFile
#log4cplus.logThreadDemo=DEBUG,Console,RollFile
#log4cplus.logBranchDemo=DEBUG,Console,RollFile