PyDocs

Nav

Generic Operating System Services

DatagramHandler

  • DatagramHandler(host, port)
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.
Changed in 3.4
  • 3.4: If port is specified as None, a Unix domain socket is created using the value in host - otherwise, a UDP socket is created.
Members of DatagramHandler

e

emit
Emit a record.

m

makeSocket
The factory method of SocketHandler is here overridden to create a UDP socket (SOCK_DGRAM).

s

send
Send a pickled string to a socket.
0 Examples
No examples for logging.handlers/DatagramHandler.
See Also
No see-alsos for logging.handlers/DatagramHandler
0 Notes
No notes for DatagramHandler