The logging Module
The stdlib logging package routes log records from loggers through handlers to outputs (console, files, syslog). Configure levels, formatters, and logger hierarchy once at startup - libraries log to named loggers without configuring handlers.