aboutsummaryrefslogtreecommitdiff
path: root/src/config/mod.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-16 16:48:51 +0000
committerFuwn <[email protected]>2021-05-16 16:48:51 +0000
commitbc883d8450dcba4e8738023bae722696e7b7d6f3 (patch)
treef2a8986e848fdeb8b21b7fe2f29b86da4cd1be85 /src/config/mod.rs
parentfix(cli/clean): formatting (diff)
downloadwhirl-bc883d8450dcba4e8738023bae722696e7b7d6f3.tar.xz
whirl-bc883d8450dcba4e8738023bae722696e7b7d6f3.zip
feat(config): optional log to file
Gives you the option to disable logging to a file, environment variable takes precedence over configuration key. BREAKING CHANGE: `whirlsplash.log.file` configuration key created.
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index 8e6e053..bc350ea 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -26,6 +26,7 @@ pub struct WhirlsplashLogConfig {
pub level: i64,
pub everything: bool,
pub test: bool,
+ pub file: bool,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct DistributorConfig {
@@ -83,6 +84,7 @@ impl Default for Config {
level: 1,
everything: false,
test: false,
+ file: true,
},
},
distributor: DistributorConfig {