I recently got audited inside the Low Quality review queue and failed because I recommended deletion of this answer:
You could define them yourself, but it would be simpler to use the
log
crate, which defines several macros for various purposes (see thelog
documentation).Note that the crate only provides the frontend for logging; you'll also need to select a backend. There's a basic example in the
log
documentation, or you could use something likeenv_logger
orlog4rs
.
Yes, there is some explanation, but the author does not provide any code. They recommends using log
as a debugging tool (I am not familiar with it), but doesn't provide how to use it, only points to the documentation.
Correct me if I am wrong here and provide some explanation; I would like to know for future reference.