feat(bin): separate journald and file log filters, log debug to file by default (#5197)

This commit is contained in:
Alexey Shekhirin
2023-10-31 11:08:15 +00:00
committed by GitHub
parent 7907cece7c
commit 9ca44efe9f
27 changed files with 291 additions and 217 deletions

View File

@ -74,27 +74,32 @@ Options:
Print version
Logging:
--log.directory <PATH>
--log.file.directory <PATH>
The path to put log files in
[default: /reth/logs]
--log.max-size <SIZE>
The maximum size (in MB) of log files
--log.file.max-size <SIZE>
The maximum size (in MB) of one log file
[default: 200]
--log.max-files <COUNT>
--log.file.max-files <COUNT>
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
[default: 5]
--log.journald
Log events to journald
--log.filter <FILTER>
--log.file.filter <FILTER>
The filter to use for logs written to the log file
[default: debug]
--log.journald
Write logs to journald
--log.journald.filter <FILTER>
The filter to use for logs written to journald
[default: error]
--color <COLOR>

View File

@ -42,27 +42,32 @@ Options:
Print help (see a summary with '-h')
Logging:
--log.directory <PATH>
--log.file.directory <PATH>
The path to put log files in
[default: /reth/logs]
--log.max-size <SIZE>
The maximum size (in MB) of log files
--log.file.max-size <SIZE>
The maximum size (in MB) of one log file
[default: 200]
--log.max-files <COUNT>
--log.file.max-files <COUNT>
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
[default: 5]
--log.journald
Log events to journald
--log.filter <FILTER>
--log.file.filter <FILTER>
The filter to use for logs written to the log file
[default: debug]
--log.journald
Write logs to journald
--log.journald.filter <FILTER>
The filter to use for logs written to journald
[default: error]
--color <COLOR>

View File

@ -72,27 +72,32 @@ Database:
- extra: Enables logging for extra debug-level messages
Logging:
--log.directory <PATH>
--log.file.directory <PATH>
The path to put log files in
[default: /reth/logs]
--log.max-size <SIZE>
The maximum size (in MB) of log files
--log.file.max-size <SIZE>
The maximum size (in MB) of one log file
[default: 200]
--log.max-files <COUNT>
--log.file.max-files <COUNT>
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
[default: 5]
--log.journald
Log events to journald
--log.filter <FILTER>
--log.file.filter <FILTER>
The filter to use for logs written to the log file
[default: debug]
--log.journald
Write logs to journald
--log.journald.filter <FILTER>
The filter to use for logs written to journald
[default: error]
--color <COLOR>

View File

@ -53,27 +53,32 @@ Options:
Print help (see a summary with '-h')
Logging:
--log.directory <PATH>
--log.file.directory <PATH>
The path to put log files in
[default: /reth/logs]
--log.max-size <SIZE>
The maximum size (in MB) of log files
--log.file.max-size <SIZE>
The maximum size (in MB) of one log file
[default: 200]
--log.max-files <COUNT>
--log.file.max-files <COUNT>
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
[default: 5]
--log.journald
Log events to journald
--log.filter <FILTER>
--log.file.filter <FILTER>
The filter to use for logs written to the log file
[default: debug]
--log.journald
Write logs to journald
--log.journald.filter <FILTER>
The filter to use for logs written to journald
[default: error]
--color <COLOR>

View File

@ -70,27 +70,32 @@ Database:
remaining stages are executed.
Logging:
--log.directory <PATH>
--log.file.directory <PATH>
The path to put log files in
[default: /reth/logs]
--log.max-size <SIZE>
The maximum size (in MB) of log files
--log.file.max-size <SIZE>
The maximum size (in MB) of one log file
[default: 200]
--log.max-files <COUNT>
--log.file.max-files <COUNT>
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
[default: 5]
--log.journald
Log events to journald
--log.filter <FILTER>
--log.file.filter <FILTER>
The filter to use for logs written to the log file
[default: debug]
--log.journald
Write logs to journald
--log.journald.filter <FILTER>
The filter to use for logs written to journald
[default: error]
--color <COLOR>

View File

@ -61,27 +61,32 @@ Database:
- extra: Enables logging for extra debug-level messages
Logging:
--log.directory <PATH>
--log.file.directory <PATH>
The path to put log files in
[default: /reth/logs]
--log.max-size <SIZE>
The maximum size (in MB) of log files
--log.file.max-size <SIZE>
The maximum size (in MB) of one log file
[default: 200]
--log.max-files <COUNT>
--log.file.max-files <COUNT>
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
[default: 5]
--log.journald
Log events to journald
--log.filter <FILTER>
--log.file.filter <FILTER>
The filter to use for logs written to the log file
[default: debug]
--log.journald
Write logs to journald
--log.journald.filter <FILTER>
The filter to use for logs written to journald
[default: error]
--color <COLOR>

View File

@ -389,27 +389,32 @@ Pruning:
Run full node. Only the most recent 10064 block states are stored. This flag takes priority over pruning configuration in reth.toml
Logging:
--log.directory <PATH>
--log.file.directory <PATH>
The path to put log files in
[default: /reth/logs]
--log.max-size <SIZE>
The maximum size (in MB) of log files
--log.file.max-size <SIZE>
The maximum size (in MB) of one log file
[default: 200]
--log.max-files <COUNT>
--log.file.max-files <COUNT>
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
[default: 5]
--log.journald
Log events to journald
--log.filter <FILTER>
--log.file.filter <FILTER>
The filter to use for logs written to the log file
[default: debug]
--log.journald
Write logs to journald
--log.journald.filter <FILTER>
The filter to use for logs written to journald
[default: error]
--color <COLOR>

View File

@ -100,27 +100,32 @@ Database:
- extra: Enables logging for extra debug-level messages
Logging:
--log.directory <PATH>
--log.file.directory <PATH>
The path to put log files in
[default: /reth/logs]
--log.max-size <SIZE>
The maximum size (in MB) of log files
--log.file.max-size <SIZE>
The maximum size (in MB) of one log file
[default: 200]
--log.max-files <COUNT>
--log.file.max-files <COUNT>
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
[default: 5]
--log.journald
Log events to journald
--log.filter <FILTER>
--log.file.filter <FILTER>
The filter to use for logs written to the log file
[default: debug]
--log.journald
Write logs to journald
--log.journald.filter <FILTER>
The filter to use for logs written to journald
[default: error]
--color <COLOR>

View File

@ -40,27 +40,32 @@ Options:
Print help (see a summary with '-h')
Logging:
--log.directory <PATH>
--log.file.directory <PATH>
The path to put log files in
[default: /reth/logs]
--log.max-size <SIZE>
The maximum size (in MB) of log files
--log.file.max-size <SIZE>
The maximum size (in MB) of one log file
[default: 200]
--log.max-files <COUNT>
--log.file.max-files <COUNT>
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
[default: 5]
--log.journald
Log events to journald
--log.filter <FILTER>
--log.file.filter <FILTER>
The filter to use for logs written to the log file
[default: debug]
--log.journald
Write logs to journald
--log.journald.filter <FILTER>
The filter to use for logs written to journald
[default: error]
--color <COLOR>

View File

@ -43,27 +43,32 @@ Options:
Print help (see a summary with '-h')
Logging:
--log.directory <PATH>
--log.file.directory <PATH>
The path to put log files in
[default: /reth/logs]
--log.max-size <SIZE>
The maximum size (in MB) of log files
--log.file.max-size <SIZE>
The maximum size (in MB) of one log file
[default: 200]
--log.max-files <COUNT>
--log.file.max-files <COUNT>
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
[default: 5]
--log.journald
Log events to journald
--log.filter <FILTER>
--log.file.filter <FILTER>
The filter to use for logs written to the log file
[default: debug]
--log.journald
Write logs to journald
--log.journald.filter <FILTER>
The filter to use for logs written to journald
[default: error]
--color <COLOR>

View File

@ -40,27 +40,32 @@ Options:
Print help (see a summary with '-h')
Logging:
--log.directory <PATH>
--log.file.directory <PATH>
The path to put log files in
[default: /reth/logs]
--log.max-size <SIZE>
The maximum size (in MB) of log files
--log.file.max-size <SIZE>
The maximum size (in MB) of one log file
[default: 200]
--log.max-files <COUNT>
--log.file.max-files <COUNT>
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
[default: 5]
--log.journald
Log events to journald
--log.filter <FILTER>
--log.file.filter <FILTER>
The filter to use for logs written to the log file
[default: debug]
--log.journald
Write logs to journald
--log.journald.filter <FILTER>
The filter to use for logs written to journald
[default: error]
--color <COLOR>