Skip to content

Commit ccc6722

Browse files
committed
1 parent 79c3a64 commit ccc6722

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/main/resource/log4j.properties

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#config root logger
2+
log4j.rootLogger = INFO,system.out
3+
log4j.appender.system.out=org.apache.log4j.ConsoleAppender
4+
log4j.appender.system.out.layout=org.apache.log4j.PatternLayout
5+
log4j.appender.system.out.layout.ConversionPattern=MINAServer Logger-->%5p{%F:%L}-%m%n
6+
7+
#config this Project.file logger
8+
log4j.logger.thisProject.file=INFO,thisProject.file.out
9+
log4j.appender.thisProject.file.out=org.apache.log4j.DailyRollingFileAppender
10+
log4j.appender.thisProject.file.out.File=logContentFile.log
11+
log4j.appender.thisProject.file.out.layout=org.apache.log4j.PatternLayout

0 commit comments

Comments
 (0)