ngrok-python icon indicating copy to clipboard operation
ngrok-python copied to clipboard

feat: add `--log-level` parameter to `ngrok.__main__`

Open rudi193-cmd opened this issue 6 months ago • 1 comments

Resolves #134

This adds a --log-level parameter to ngrok_parser.py and configures the logging in __main__.py to set the log level specifically for the ngrok logger, rather than globally via basicConfig(level=logging.INFO). This ensures that other packages' log levels are not inadvertently affected.

Made with Cursor

rudi193-cmd avatar May 19 '26 22:05 rudi193-cmd

Rebased on latest main and tightened the CLI: choices= for ERROR/WARN/INFO/DEBUG/TRACE, calls ngrok.log_level() for the Rust bridge plus maps WARN→WARNING / TRACE→DEBUG on the Python logger.

rudi193-cmd avatar May 20 '26 18:05 rudi193-cmd