Drakulix / simplelog.rs

Simple Logging Facility for Rust
https://docs.rs/simplelog/
Apache License 2.0
414 stars 71 forks source link

Add a helper function to initialize loggers with default config #119

Open Shatur opened 1 year ago

Shatur commented 1 year ago

I found it's a bit annoying to initialize tests like this:

TestLogger::init(LevelFilter::Warn, Config::default())

I would suggest to add function init_default to simplify the initialization.

Drakulix commented 1 year ago

Feel free to open a PR.