1 Enable logging
Jakub Sykulski edited this page 2025-12-07 02:15:37 +01:00

To enable logging during the program run, please use the following command:

RUST_LOG=<level> cargo run

or

RUST_LOG=<level> ./<binary name>

where

level = info | warn | error | debug

It's all possible to simply set RUST_LOG as persistent environment variable. Dealer's choice, as I like to say.

Initialization of the logging environment is done automatically.