I need to change the logging level while running the unit tests for a library. I am using the cargo test
command to run the tests.
Is there any way to specify the logging level on the command line? From the documentation of the log crate, it seems like I need to define an environment variable separately. That may not be convenient as I would like to change the logging level to debug only when a test case fails.