Files
confique/examples/simple.rs
Lukas Kalbertodt 651a06b252 Add typename attribute and refactor a bunch
This commit should have been two, I know. I feel bad about it.
2021-04-29 23:18:22 +02:00

24 lines
560 B
Rust

mod config {
use std::path::PathBuf;
confique::config! {
#[derive(Debug, Clone)]
log: {
/// Determines how many messages are logged. Log messages below
/// this level are not emitted. Possible values: "trace", "debug",
/// "info", "warn", "error" and "off".
level: log::LevelFilter = "debug",
/// If this is set, log messages are also written to this file.
#[example = "/var/log/test.log"]
file: Option<PathBuf>,
},
}
}
fn main() {
}