-
Notifications
You must be signed in to change notification settings - Fork 1
/
log4cpp.properties
57 lines (47 loc) · 2.29 KB
/
log4cpp.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
logPath=/Users/alias/log
log4cpp.rootCategory=DEBUG, rootAppender, errorAppender
log4cpp.category.node=DEBUG, nodeAppender
log4cpp.category.console=DEBUG, consoleAppender
log4cpp.category.module=DEBUG, moduleAppender
# root log
log4cpp.appender.rootAppender=RollingFileAppender
log4cpp.appender.rootAppender.fileName=${logPath}/langX.log
log4cpp.appender.rootAppender.append=false
log4cpp.appender.rootAppender.maxFileSize=15728640 # 15MB
log4cpp.appender.rootAppender.maxBackupIndex=1
log4cpp.appender.rootAppender.layout=PatternLayout
log4cpp.appender.rootAppender.layout.ConversionPattern=[%d] [%p] %m%n
# node exec record
log4cpp.appender.nodeAppender=RollingFileAppender
log4cpp.appender.nodeAppender.fileName=${logPath}/node.log
log4cpp.appender.nodeAppender.append=false
log4cpp.appender.nodeAppender.maxFileSize=15728640 # 15MB
log4cpp.appender.nodeAppender.maxBackupIndex=1
log4cpp.appender.nodeAppender.layout=PatternLayout
log4cpp.appender.nodeAppender.layout.ConversionPattern=[%d] [%p] %m%n
# error msg
log4cpp.appender.errorAppender=RollingFileAppender
log4cpp.appender.errorAppender.fileName=${logPath}/error.log
log4cpp.appender.errorAppender.threshold=WARN
log4cpp.appender.errorAppender.append=false
log4cpp.appender.errorAppender.maxFileSize=15728640 # 15MB
log4cpp.appender.errorAppender.maxBackupIndex=1
log4cpp.appender.errorAppender.layout=PatternLayout
log4cpp.appender.errorAppender.layout.ConversionPattern=[%d] [%p] %m%n
# info msg
log4cpp.appender.consoleAppender=RollingFileAppender
log4cpp.appender.consoleAppender.fileName=${logPath}/console.log
#log4cpp.appender.consoleAppender.threshold=WARN
log4cpp.appender.consoleAppender.append=false
log4cpp.appender.consoleAppender.maxFileSize=15728640 # 15MB
log4cpp.appender.consoleAppender.maxBackupIndex=1
log4cpp.appender.consoleAppender.layout=PatternLayout
log4cpp.appender.consoleAppender.layout.ConversionPattern=[%d] [%p] %m%n
# module msg
log4cpp.appender.moduleAppender=RollingFileAppender
log4cpp.appender.moduleAppender.fileName=${logPath}/module.log
log4cpp.appender.moduleAppender.append=false
log4cpp.appender.moduleAppender.maxFileSize=15728640 # 15MB
log4cpp.appender.moduleAppender.maxBackupIndex=1
log4cpp.appender.moduleAppender.layout=PatternLayout
log4cpp.appender.moduleAppender.layout.ConversionPattern=[%d] [%p] %m%n