log4cplus的配置
log4cplus.rootLogger=TRACE,STDOUT,LOG2FILE
#log to file
log4cplus.appender.LOG2FILE=log4cplus::RollingFileAppender
log4cplus.appender.LOG2FILE.File=apue.log
log4cplus.appender.LOG2FILE.MaxFileSize=1MB
log4cplus.appender.LOG2FILE.layout=log4cplus::PatternLayout
log4cplus.appender.LOG2FILE.layout.ConversionPattern=%d{%Y%m%d %H:%M:%S} [%F][%t] %-5p - %m%n
#log to stdout console
log4cplus.appender.STDOUT=log4cplus::ConsoleAppender
log4cplus.appender.STDOUT.layout=log4cplus::PatternLayout
log4cplus.appender.STDOUT.layout.ConversionPattern=%d{%Y%m%d %H:%M:%S} [%F][%t] %-5p - %m%n