pcdsutils.log._LogQueueListener
- class pcdsutils.log._LogQueueListener(queue, *handlers, respect_handler_level=False)[source]
A log handler which listens in a separate thread for queued records
Methods
dequeue(block)Dequeue a record and return it, optionally blocking.
enqueue_sentinel()This is used to enqueue the sentinel record.
handle(record)Handle a record.
prepare(record)Prepare a record for handling.
start()Start the listener.
stop()Stop the listener.
- __init__(queue, *handlers, respect_handler_level=False)
Initialise an instance with the specified queue and handlers.
Methods
__init__(queue, *handlers[, ...])Initialise an instance with the specified queue and handlers.
dequeue(block)Dequeue a record and return it, optionally blocking.
enqueue_sentinel()This is used to enqueue the sentinel record.
handle(record)Handle a record.
prepare(record)Prepare a record for handling.
start()Start the listener.
stop()Stop the listener.