borntyping / rust-simple_logger

A rust logger that prints all messages with a readable output format.
https://crates.io/crates/simple_logger
MIT License
220 stars 48 forks source link

`must_use` on SimpleLogger methods #60

Closed kartva closed 2 years ago

kartva commented 2 years ago

Placing #[must_use] on most methods on SimpleLogger would help remind users to use init to actually initialize the logger.

I'd be happy to work on this as well.

borntyping commented 2 years ago

I'd be very happy to accept an MR adding this :)

kartva commented 2 years ago

It seems that #25 has dealt with this already. Huh, I could've sworn that I didn't see any warnings when using the crate, but testing it now seems to work. False alarm.