near / near-cli-rs

near CLI is your human-friendly companion that helps to interact with NEAR Protocol from command line.
https://near.cli.rs
Apache License 2.0
86 stars 52 forks source link

Runtime Introspection #321

Open miraclx opened 2 months ago

miraclx commented 2 months ago

What do you think about setting up a log subscriber for the binary, near-jsonrpc-client, for example uses log internally, and I would like to be able to see those reports when running the CLI.

frol commented 1 month ago

@miraclx do you mean you want to be able to control logging level via env variable RUST_LOG?

You can do that starting with a recent 0.10.0 release:

https://github.com/near/near-cli-rs/blob/21001b6d6c6c6fb05ba1f5d267029de4af680beb/src/main.rs#L91