A handler class which writes logging records, in pickle format, to a
streaming socket. The socket is kept open across logging calls. If the
peer resets it, an attempt is made to reconnect on the next call. The
pickle which is sent is that of the LogRecord's attribute dictionary
(__dict__), so that the receiver does not need to have the logging module
installed in order to process the logging event.
To unpickle the record at the receiving end into a LogRecord, use the
makeLogRecord function.
|
__init__(self,
host,
port)
Initializes the handler with a specific host address and port. |
source code
|
|
|
makeSocket(self)
A factory method which allows subclasses to define the precise type
of socket they want. |
source code
|
|
|
|
|
|
|
makePickle(self,
record)
Pickles the record in binary format with a length prefix, and returns
it ready for transmission across the socket. |
source code
|
|
|
|
|
|
|
|
Inherited from Handler :
acquire ,
createLock ,
flush ,
format ,
handle ,
release ,
setFormatter ,
setLevel
Inherited from Filterer :
addFilter ,
filter ,
removeFilter
|