pcdsutils.log._PassthroughStreamHandler

class pcdsutils.log._PassthroughStreamHandler(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([timeout])

A factory method which allows subclasses to define the precise type of socket they want.

release()

Release the I/O thread lock.

removeFilter(filter)

Remove the specified filter from this handler.

send(s)

Send a pickled string to the 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.

When the attribute closeOnError is set to True - if a socket error occurs, the socket is silently closed and then reopened on the next logging call.

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([timeout])

A factory method which allows subclasses to define the precise type of socket they want.

release()

Release the I/O thread lock.

removeFilter(filter)

Remove the specified filter from this handler.

send(s)

Send a pickled string to the socket.

setFormatter(fmt)

Set the formatter for this handler.

setLevel(level)

Set the logging level of this handler.

set_name(name)

Attributes

name