File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ New settings
2
+ ------------
3
+
4
+ - Until now, the ` debug.log ` file grows without bound until the node
5
+ is restarted, at which time it is trimmed to 10 MB. Beginning with this
6
+ release, log rotation is enabled by default. When the ` debug.log ` file
7
+ reaches 1 MB, it's renamed to a name that includes the current date and
8
+ time, such as ` debug-2021-06-27T21:19:42Z.log ` and ` debug.log ` is
9
+ recreated as an empty file. Running ` cat ` or ` grep ` with an argument
10
+ ` debug*.log ` accesses all debug log files, including the current one
11
+ (` debug.log ` ) in time-order. The ` -debuglogrotatekeep=n ` configuration
12
+ option specifies the number of rotated debug log files that are retained
13
+ (default 10). If this value is given as zero, log rotation is disabled
14
+ (the debug log file is managed as in prior releases). The ` -debugloglimit=n `
15
+ configuration option specifies how large the ` debug.log ` file must
16
+ become (in MB) before it is rotated (default is 1). If you specify an
17
+ alternate debug log file name using ` -debuglogfile=path ` , the last
18
+ component of the path must be ` debug.log ` or else log rotation won't be
19
+ enabled. (#22350 )
You can’t perform that action at this time.
0 commit comments