How to use log4rs together with the log crate?

Both are great crates. But there is lack of a detailed instruction or the general guidance is a bit unclear on how to use them in combination. I’d appreciate if someone can just give some insight or simple example! Thanks!

1 Like

Hi the cookbook has the answer :slight_smile:

https://rust-lang-nursery.github.io/rust-cookbook/logging.html#log-messages-to-a-custom-location

1 Like

Thanks a lot! First time for me to know this cookbook. It looks really great!

It’s developed alongside the LibzBlitz initiative. For now its in its pre-alpha-ish stage. Everyone is welcome to contribute :smile:!

I totally agree. It would be great if good instructions were included with the crate.