You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, Chia allows debug.logto grow to 20MB, and then rotates the file by closing debug.log, renaming it to debug.log.1, and renames any existing older log files to debug.log.x, to a maximum of 7 old log files. If a log rotation is required and all 7 old log files exist, the oldest log file is overwritten with the next earliest file; resulting in a maximum of 160MB of the most recent messages being stored.
22
+
By default, the Chia `debug.log` grows to what is set in `config.yaml` (log_maxbytesrotation: 52428800), then rotates the file by closing `debug.log`, renaming it to `debug.log.1`, and renames any existing older log files to `debug.log.x`, to a maximum of 7 old log files (log_maxfilesrotation: 7). If a log rotation is required and all 7 old log files exist, the oldest log file is overwritten with the next earliest file; resulting in roughly 420MB of the most recent log messages being stored.
22
23
23
24
## Log Detail Level:
24
25
25
-
Chia is shipped with the debug.log only containing messages at the WARN or ERROR level. Many of the messages needed to fully monitor a node are only visible at the INFO level. Changes to the logging level can be done in the `config.yaml` file in the `mainnet/config` folder.
26
+
Chia is shipped with the `debug.log` set to record messages at the `ERROR` and `WARN` levels. Many of the messages needed to fully monitor a node are only visible at the `INFO` level. Changes to the logging level can be done in the `config.yaml` file located in the `/.chia/mainnet/config` folder.
27
+
28
+
| Log Level | Messages Logged |
29
+
| --------- | ------------------------ |
30
+
| ERROR | ERROR |
31
+
| WARN | ERROR, WARN |
32
+
| INFO | ERROR, WARN, INFO |
33
+
| DEBUG | ERROR, WARN, INFO, DEBUG |
26
34
27
35
## Change the Log Level Output:
28
36
29
-
You are looking for the first reference to logging in the file that looks like this:
37
+
When editing files you should use a plain text editor with word wrap disabled to preserve the yaml format.
38
+
39
+
You are looking for the first reference to logging in the `config.yaml` file that looks like this (older files may be missing some lines):
30
40
31
41
```
32
-
farmer:
33
42
logging: &id001
43
+
log_backcompat: false
34
44
log_filename: log/debug.log
35
45
log_level: WARN
46
+
log_maxbytesrotation: 52428800
47
+
log_maxfilesrotation: 7
36
48
log_stdout: false
49
+
log_syslog: false
50
+
log_syslog_host: localhost
51
+
log_syslog_port: 514
52
+
log_use_gzip: false
37
53
```
38
54
39
-
Change the `log_level` to `INFO`, save the file, and restart the node.
55
+
Change the `log_level` from `WARN` to `INFO`, save the file, and restart the node.
56
+
57
+
Your options for log levels are `ERROR`, `WARN`, `INFO`, and `DEBUG`.
0 commit comments