Skip to main content

iter_open_logger_fds

Iterates through all active loggers to yield the unique file descriptors or streams associated with their registered handlers.

def iter_open_logger_fds() - > iterator

Yields the underlying stream objects for all active logging handlers across the application. Use this to identify or manage open file descriptors and streams currently held by the logging system.

Returns

TypeDescription
iteratorAn iterator yielding the stream objects (such as file-like objects or stderr/stdout) associated with each unique logger handler.