quiche icon indicating copy to clipboard operation
quiche copied to clipboard

How can I output the debug information onto the terminal in Rust ( Beginner in Rust! )

Open Kevin20201 opened this issue 2 years ago • 2 comments

Hi, so I was recently introduced to quiche and Rust, but I was wondering how I can output the debug information onto the terminal for example from the client.rs file: image Is there a flag for cargo that would be able to handle this?

Kevin20201 avatar Jun 30 '23 21:06 Kevin20201

You can set RUST_LOG environment variable. It takes different levels such as race, debug, warn or error.

LPardue avatar Nov 21 '23 22:11 LPardue

You can set RUST_LOG environment variable. It takes different levels such as race, debug, warn or error.

@LPardue that does not work because the examples are missing a logger implementation, https://docs.rs/log/latest/log/#available-logging-implementations

I can send a PR to add env_logger to the examples

PunitLodha avatar Mar 13 '24 21:03 PunitLodha