ngrok-python
ngrok-python copied to clipboard
feat: add `--log-level` parameter to `ngrok.__main__`
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
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.