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:
Vanish
2023-04-27 15:30:04 +08:00
committed by GitHub
parent 939a51aea9
commit 9f0efc748d
18 changed files with 771 additions and 339 deletions

View File

@@ -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"