Lib/logging/handlers.py
Source:
cpython 3.14 @ ab2d84fe1023/Lib/logging/handlers.py
Map
| Lines | Symbol | Purpose |
|---|---|---|
| 1–60 | module header, imports | struct, socket, pickle, queue, time constants |
| 61–180 | BaseRotatingHandler | Abstract rotation base: shouldRollover, doRollover |
| 181–340 | RotatingFileHandler | Size-based rotation with backupCount |
| 341–560 | TimedRotatingFileHandler | Calendar-aligned rotation: interval, suffix, computeRollover |
| 561–680 | WatchedFileHandler | Inode-watch rotation for external log rotators |
| 681–790 | SocketHandler | TCP socket transport with pickle framing |
| 791–870 | DatagramHandler | UDP socket transport |
| 871–960 | SysLogHandler | RFC-3164/RFC-5424 syslog over UDP/TCP/Unix socket |
| 961–1040 | NTEventLogHandler | Windows Event Log via win32evtlog |
| 1041–1130 | SMTPHandler | Email via smtplib |
| 1131–1220 | MemoryHandler | In-memory buffer with shouldFlush/flush target |
| 1221–1340 | QueueHandler, QueueListener | Async logging to a queue.Queue or asyncio.Queue |
| 1341–1400 | HTTPHandler | HTTP POST/GET transport |