How to use log4rs together with the log crate?


#1

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!


#2

Hi the cookbook has the answer :slight_smile:

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


#3

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


#4

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