pcdsutils.log._PassthroughDatagramHandler
- class pcdsutils.log._PassthroughDatagramHandler(host, port)[source]
- Attributes:
- name
Methods
acquire()Acquire the I/O thread lock.
addFilter(filter)Add the specified filter to this handler.
close()Closes the socket.
createLock()Acquire a thread lock for serializing access to the underlying I/O.
createSocket()Try to create a socket, using an exponential backoff with a max retry time.
emit(record)Emit 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 an error during logging.
makePickle(record)Overrides super().makePickle
makeSocket()The factory method of SocketHandler is here overridden to create a UDP socket (SOCK_DGRAM).
release()Release the I/O thread lock.
removeFilter(filter)Remove the specified filter from this handler.
send(s)Send a pickled string to a socket.
setFormatter(fmt)Set the formatter for this handler.
setLevel(level)Set the logging level of this handler.
get_name
set_name
- __init__(host, port)
Initializes the handler with a specific host address and port.
Methods
__init__(host, port)Initializes the handler with a specific host address and port.
acquire()Acquire the I/O thread lock.
addFilter(filter)Add the specified filter to this handler.
close()Closes the socket.
createLock()Acquire a thread lock for serializing access to the underlying I/O.
createSocket()Try to create a socket, using an exponential backoff with a max retry time.
emit(record)Emit 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 an error during logging.
makePickle(record)Overrides super().makePickle
makeSocket()The factory method of SocketHandler is here overridden to create a UDP socket (SOCK_DGRAM).
release()Release the I/O thread lock.
removeFilter(filter)Remove the specified filter from this handler.
send(s)Send a pickled string to a socket.
setFormatter(fmt)Set the formatter for this handler.
setLevel(level)Set the logging level of this handler.
set_name(name)Attributes
name