#1.log4j.rootLogger = [level],[outgoing1 name],[outgoing2 name],...
#level:debug,info,warn,error
log4j.rootLogger = DEBUG,appender1,appender2
#2.log4j.appender.appender1 = [outgoing1.where]
#where ----> 1.console <-----> org.apache.log4j.ConsoleAppender
#where ----> 2.file < - ----> org.apache.log4j.FileAppender #filePath
<----->(log4j.appender.appender1.file)
#where ----> 3.everyday <-----> org.apache .log4j.DailyRollingFileAppender
#where ----> 4.Fixed size <-----> org.apache.log4j.RollingFileAppender
#where ----> 5.data stream <-----> org.apache .log4j.WriterAppender
#where ----> 6.database <-----> org.apache.log4j.JdbcAppender
log4j.appender.appender1 = org.apache.log4j.FileAppender
log4j.appender.appender1.file = C :\\ \\用户\\ mrliu桌面\\ log4j.html
log4j.appender.appender2 = org.apache.log4j.ConsoleAppender
#3.log4j.appender.appender1.layout = [outgoing1.Layout]
#Layout -----> 1.TTCC <-----> org.apache.log4j.TTCCLayout
#Layout -----> 2 .HTML <-----> org.apache.log4j.HTMLLayout
#Layout -----> 3.Simple <-----> org.apache.log4j.SimpleLayout
#layout -----> 4 .patternLayout <-----> org.apache.log4j.PatternLayout
#PatternLayout detail:
#%p <-----> level(debug,info,warn,error)
#%r <----->从开始打印此信息时间
#%t <----->线程名称
#%f <----->类名
#%c <----->限定类名
#%d < - --->日期,例如%d {yyyy-MM-dd HH:mm:ss}
#%l <----->打印信息位置
#%m <----->输出指定的消息
#%n <----->“\ n”
log4j.appender.appender1.layout = org.apache.log4j.HTMLLayout
log4j.appender.appender2.layout = org.apache.log4j.SimpleLayout