Add typename attribute and refactor a bunch

This commit should have been two, I know. I feel bad about it.
This commit is contained in:
Lukas Kalbertodt
2021-04-29 23:18:22 +02:00
parent 5d3ccd7b42
commit 651a06b252
5 changed files with 306 additions and 198 deletions

View File

@@ -28,6 +28,8 @@ crate::config! {
/// How often to reattempt reaching the DNS server.
retry_attempts: u32 = 27,
},
#[typename = "Logger"]
log: {
/// Sets the log level. Possible values: "trace", "debug", "info",
/// "warn", "error" and "off".