pub fn init() -> Result<(), Box<dyn Error>>Expand description
Initialize the logger to write to a file
Logs will be written to app.log in the current directory.
The log file is automatically added to .gitignore.
Log level can be controlled via RUST_LOG environment variable:
- RUST_LOG=debug cargo run (shows all debug and higher)
- RUST_LOG=info cargo run (shows info and higher, default)
- RUST_LOG=warn cargo run (shows warnings and errors only)