mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 13:22:57 +00:00
feat: make log level and destination configurable from config files (#1444)
* feat: implement load_options. * refactor: build by ConfigOptions. * refactor: init_global_logging by LoggingOptions. * chore: make clippy happy. * refactor: use TopLevelOptions push top level options to subcommand. * test: test TopLevelOptions. * refactor: push Options in Box. * refactor: push Options in Box. * refactor: use let-else and Options.
This commit is contained in:
@@ -58,3 +58,8 @@ type = "File"
|
||||
data_dir = "/tmp/greptimedb/procedure/"
|
||||
max_retry_times = 3
|
||||
retry_delay = "500ms"
|
||||
|
||||
# Log options, see `standalone.example.toml`
|
||||
[logging]
|
||||
dir = "/tmp/greptimedb/logs"
|
||||
level = "info"
|
||||
|
||||
Reference in New Issue
Block a user