Python Dev Tools
Dev Tools — Debugger, profiler, logging, argparse, config, testing, traceback. This group brings together the Inspect Module, Pdb Module, Traceback Module, Timeit Module, GC Module, Atexit Module, Warnings Module, Logging Module, Argparse Module, Configparser Module, Shlex Module, Tokenize Module, CProfile Module, Tracemalloc Module, Faulthandler Module, Unittest Module, Sched Module, ContextVars Module, Reprlib Module, Code Module, Wave Module categories of the Python standard library. logging.basicConfig() configures the root logger with a basic configuration. logging.getLogger() returns a logger with the specified name or the root logger if name is None. logger.debug() logs a message with severity DEBUG (detailed diagnostic info). logger.info() logs a message with severity INFO (general operational messages). logger.warning() logs a message with severity WARNING (potential issue). Representative APIs from this group include logging.basicConfig(), logging.getLogger(), logger.debug(), logger.info(), logger.warning(), logger.error(), logger.critical(), logger.exception().