Drakulix / simplelog.rs

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

Make Config fields public outside Crate? #155

Open Squidroot2 opened 2 weeks ago

Squidroot2 commented 2 weeks ago

It would be nice if the Config struct's fields were accessible outside of the crate so that one can make their own SharedLoggers that use the Config. One can make their own config struct for the same purpose but it would be nice to use the one that comes with this crate especially since the config() function is part of the SharedLogger trait.

If there is some reason that we can't make the fields themselves public, public getters returning immutable references would work just as well.