forked from rty1966/Erachain_alpha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog4j.properties
49 lines (37 loc) · 1.56 KB
/
log4j.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
# Define the root logger with appender file
log4j.rootLogger = ERROR, FILE, stdout
log4j.logger.controller.Controller=debug
log4j.logger.database.PeerMap=debug
log4j.logger.network.ConnectionAcceptor=debug
log4j.logger.network.ConnectionCreator=debug
log4j.logger.network.Network=debug
log4j.logger.network.Peer=debug
log4j.logger.settings.Settings=debug
log4j.logger.core.BlockGenerator=debug
log4j.logger.core.BlockChain=debug
log4j.logger.ntp.NTP=info
log4j.logger.wallet.Wallet=debug
log4j.logger.Start=debug
log4j.logger.core.Synchronizer=debug
# Define the file appender
log4j.appender.FILE=org.apache.log4j.RollingFileAppender
# Set the name of the file
log4j.appender.FILE.File=log.txt
# Set the immediate flush to true (default)
log4j.appender.FILE.ImmediateFlush=true
# Set the threshold to debug mode
log4j.appender.FILE.Threshold=debug
# Set the append to false, should not overwrite
log4j.appender.FILE.Append=true
# Set the maximum file size before rollover
log4j.appender.FILE.MaxFileSize=2MB
# Set the the backup index
log4j.appender.FILE.MaxBackupIndex=2
# Define the layout for file appender
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.conversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n