Python Module logging Operations

From NovaOrdis Knowledge Base
Revision as of 16:34, 26 May 2023 by Ovidiu (talk | contribs) (→‎Configure Logging Level Externally)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Overview

Configure Logging Level Externally

Python does not seem to have an interpreter command line option to use to set the logging level.

Make this part of your application. Parse -v|--verbose, -d|--debug, etc on command line and then set logging.basicConfig(level=parsed_ogging_level) in main().