-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlog.conf
71 lines (52 loc) · 2.72 KB
/
log.conf
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
58
59
60
61
62
63
64
65
#t category 的属性
log4cpp.rootCategory=INFO,rootlog
#定义 console 属性
log4cpp.appender.console=ConsoleAppender
log4cpp.appender.console.layout=PatternLayout
log4cpp.appender.console.layout.ConversionPattern=[%p] %d{%H:%M:%S} (%c): %m%n
log4cpp.appender.rootlog=FileAppender
log4cpp.appender.rootlog.fileName=${logpath}/rootlog.log
log4cpp.appender.rootlog.layout=PatternLayout
log4cpp.appender.rootlog.layout.ConversionPattern=[%p] %d{%H:%M:%S} (%c): %m%n
#定义 CID_WALLET category 的属性
log4cpp.category.CID_WALLET=FATAL,walletlog
log4cpp.appender.walletlog=FileAppender
log4cpp.appender.walletlog.fileName=${logpath}/CID_WALLET.log
log4cpp.appender.walletlog.layout=PatternLayout
log4cpp.appender.walletlog.layout.ConversionPattern=[%p] %d{%H:%M:%S} (%c): %m%n
#定义 CID_TX_CORE category 的属性
log4cpp.category.CID_TX_CORE=ERROR,CID_TX_CORE
log4cpp.appender.CID_TX_CORE=FileAppender
log4cpp.appender.CID_TX_CORE.fileName=${logpath}/CID_TX_CORE.log
log4cpp.appender.CID_TX_CORE.layout=PatternLayout
log4cpp.appender.CID_TX_CORE.layout.ConversionPattern=[%p] %d{%H:%M:%S} (%c): %m%n
#定义 CID_BLOCK_CHAIN category 的属性
log4cpp.category.CID_BLOCK_CHAIN=NOTICE,CID_BLOCK_CHAIN
log4cpp.appender.CID_BLOCK_CHAIN=FileAppender
log4cpp.appender.CID_BLOCK_CHAIN.fileName=${logpath}/CID_BLOCK_CHAIN.log
log4cpp.appender.CID_BLOCK_CHAIN.layout=PatternLayout
log4cpp.appender.CID_BLOCK_CHAIN.layout.ConversionPattern=[%p] %d{%H:%M:%S} (%c): %m%n
#定义 mempool category 的属性
log4cpp.category.CID_TX_MEMPOOL=NOTICE,CID_TX_MEMPOOL
log4cpp.appender.CID_TX_MEMPOOL=FileAppender
log4cpp.appender.CID_TX_MEMPOOL.fileName=${logpath}/CID_TX_MEMPOOL.log
log4cpp.appender.CID_TX_MEMPOOL.layout=PatternLayout
log4cpp.appender.CID_TX_MEMPOOL.layout.ConversionPattern=[%p] %d{%H:%M:%S} (%c): %m%n
#定义 sample category 的属性
log4cpp.category.CID_HTTP_RPC=FATAL,CID_HTTP_RPC
log4cpp.appender.CID_HTTP_RPC=FileAppender
log4cpp.appender.CID_HTTP_RPC.fileName=${logpath}/CID_HTTP_RPC.log
log4cpp.appender.CID_HTTP_RPC.layout=PatternLayout
log4cpp.appender.CID_HTTP_RPC.layout.ConversionPattern=[%p] %d{%H:%M:%S} (%c): %m%n
#定义 sample category 的属性
log4cpp.category.CID_P2P_NET=NOTICE,CID_P2P_NET
log4cpp.appender.CID_P2P_NET=FileAppender
log4cpp.appender.CID_P2P_NET.fileName=${logpath}/CID_P2P_NET.log
log4cpp.appender.CID_P2P_NET.layout=PatternLayout
log4cpp.appender.CID_P2P_NET.layout.ConversionPattern=[%p] %d{%H:%M:%S} (%c): %m%n
#定义 sample category 的属性
log4cpp.category.CID_MINER=FATAL,CID_MINER
log4cpp.appender.CID_MINER=FileAppender
log4cpp.appender.CID_MINER.fileName=${logpath}/CID_MINER.log
log4cpp.appender.CID_MINER.layout=PatternLayout
log4cpp.appender.CID_MINER.layout.ConversionPattern=[%p] %d{%H:%M:%S} (%c): %m%n