PyDocs

Nav

Generic Operating System Services

QueueHandler

  • QueueHandler(queue)
This handler sends events to a queue. Typically, it would be used together
with a multiprocessing Queue to centralise logging to file in one process
(in a multi-process application), so as to avoid file write contention
between processes.

This code is new in Python 3.2, but this class can be copy pasted into
user code for use with earlier Python versions.
Members of QueueHandler

e

emit
Emit a record.
enqueue
Enqueue a record.

l

listener
When created via configuration using dictConfig(), this attribute will contain a QueueListener instance for use with this handler.

p

prepare
Prepare a record for queuing.
0 Examples
No examples for logging.handlers/QueueHandler.
See Also
No see-alsos for logging.handlers/QueueHandler
0 Notes
No notes for QueueHandler