Open makingthematrix opened 6 years ago
That wasn't hard.
The standard way to log is to use the log
trait: https://docs.rs/log/0.4.1/log/
It's just an abstraction, which is super nice, because this way I can easily choose my own implementation, but keep it outside the library, so the user of the library can use another implementation if needed. I'm really glad someone thought about it.
My chosen implementation is flexi_logger
: https://docs.rs/flexi_logger/0.6.13/flexi_logger/
I chose it mainly because the author made effort to explain in the docs how to connect it to log
.
Merci bp!
Look for a logger with logging: