_ClassType DatagramHandler
Filterer --+
|
Handler --+
|
SocketHandler --+
|
DatagramHandler
A handler class which writes logging records, in pickle format, to a
datagram socket. 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. |
|
|
|
makeSocket(self)
The factory method of SocketHandler is here overridden to create a
UDP socket (SOCK_DGRAM). |
|
|
|
send(self,
s)
Send a pickled string to a socket. |
|
|
Inherited from SocketHandler :
close ,
createSocket ,
emit ,
handleError ,
makePickle
Inherited from Handler :
acquire ,
createLock ,
flush ,
format ,
handle ,
release ,
setFormatter ,
setLevel
Inherited from Filterer :
addFilter ,
filter ,
removeFilter
|
__init__(self,
host,
port)
(Constructor)
|
|
Initializes the handler with a specific host address and port.
- Overrides:
Filterer.__init__
|
The factory method of SocketHandler is here overridden to create a UDP
socket (SOCK_DGRAM).
- Overrides:
SocketHandler.makeSocket
|
Send a pickled string to a socket.
This function no longer allows for partial sends which can happen when
the network is busy - UDP does not guarantee delivery and can deliver
packets out of sequence.
- Overrides:
SocketHandler.send
|