pcdsutils.log._JsonLogQueueHandler
- class pcdsutils.log._JsonLogQueueHandler(*handlers, queue=None)[source]
Logging handler which pushes `logging.LogRecord`s to a separate thread
- Attributes:
- name
Methods
acquire()Acquire the I/O thread lock.
addFilter(filter)Add the specified filter to this handler.
close()Tidy up any resources used by the handler.
createLock()Acquire a thread lock for serializing access to the underlying I/O.
emit(record)Emit a record.
enqueue(record)Enqueue a record.
filter(record)Determine if a record is loggable by consulting all the filters.
flush()Ensure all logging output has been flushed.
format(record)Format the specified record.
handle(record)Conditionally emit the specified logging record.
handleError(record)Handle errors which occur during an emit() call.
prepare(record)Overrides QueueHandle prepare
release()Release the I/O thread lock.
removeFilter(filter)Remove the specified filter from this handler.
setFormatter(fmt)Set the formatter for this handler.
setLevel(level)Set the logging level of this handler.
get_name
set_name
Methods
__init__(*handlers[, queue])Initialise an instance, using the passed queue.
acquire()Acquire the I/O thread lock.
addFilter(filter)Add the specified filter to this handler.
close()Tidy up any resources used by the handler.
createLock()Acquire a thread lock for serializing access to the underlying I/O.
emit(record)Emit a record.
enqueue(record)Enqueue a record.
filter(record)Determine if a record is loggable by consulting all the filters.
flush()Ensure all logging output has been flushed.
format(record)Format the specified record.
get_name()handle(record)Conditionally emit the specified logging record.
handleError(record)Handle errors which occur during an emit() call.
prepare(record)Overrides QueueHandle prepare
release()Release the I/O thread lock.
removeFilter(filter)Remove the specified filter from this handler.
setFormatter(fmt)Set the formatter for this handler.
setLevel(level)Set the logging level of this handler.
set_name(name)Attributes
name