logginghandlers
Logging handlers are components of the Python standard library's logging package that determine where log records are delivered. The logging.handlers module extends the basic set of handlers with additional destinations and behaviors, enabling more sophisticated logging setups without changing the core logging interface.
Each handler is attached to a logger and can have its own level, formatter, and filters. When
RotatingFileHandler and TimedRotatingFileHandler manage log file rotation. RotatingFileHandler rotates when a file reaches a size threshold
Network and system destinations include SocketHandler and DatagramHandler for sending records to a remote server over
Configuration is typically done by code, but can also be established with configuration files or dictionaries
Related concepts include formatters, filters, and the logging configuration system. The logging.handlers module complements the standard