diff options
| author | Fuwn <[email protected]> | 2021-05-15 16:05:52 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-15 16:05:52 +0000 |
| commit | 928c4bfe07a62a760aa0071b239deacabdc5438c (patch) | |
| tree | 848ac5e278b9bbf3e417f829001aa48c40d50b5c /src | |
| parent | chore(git): normilize eol to lf (diff) | |
| download | whirl-928c4bfe07a62a760aa0071b239deacabdc5438c.tar.xz whirl-928c4bfe07a62a760aa0071b239deacabdc5438c.zip | |
feat(global): logs now go to a dedicated directory and file
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 2171243..0b3899d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,7 +12,11 @@ async fn main() -> Result<(), Box<dyn Error>> { // Logging dotenv::dotenv().ok(); - pretty_env_logger::init(); + flexi_logger::Logger::with_str("trace") + .log_to_file() + .directory("log") + .print_message() + .start()?; // Execution Cli::execute(matches).await; |