logging.handlers.HTTPHandler.mapLogRecord()

mapLogRecord(record) Provides a dictionary, based on record, which is to be URL-encoded and sent to the web server. The default implementation just returns record.__dict__. This method can be overridden if e.g. only a subset of LogRecord is to be sent to the web server, or if more specific customization of what’s sent to the server is required.

logging.handlers.HTTPHandler.emit()

emit(record) Sends the record to the Web server as a URL-encoded dictionary. The mapLogRecord() method is used to convert the record to the dictionary to be sent.

logging.handlers.HTTPHandler

class logging.handlers.HTTPHandler(host, url, method='GET', secure=False, credentials=None, context=None) Returns a new instance of the HTTPHandler class. The host can be of the form host:port, should you need to use a specific port number. If no method is specified, GET is used. If secure is true, a HTTPS connection will be used. The context parameter may be set to a ssl.SSLContext instance to configure the SSL settings used for the HTTPS connection. If credentials is specified, it should b

logging.handlers.DatagramHandler.send()

send(s) Send a pickled string to a socket.

logging.handlers.DatagramHandler.makeSocket()

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

logging.handlers.DatagramHandler.emit()

emit() Pickles the record’s attribute dictionary and writes it to the socket in binary format. If there is an error with the socket, silently drops the packet. To unpickle the record at the receiving end into a LogRecord, use the makeLogRecord() function.

logging.handlers.DatagramHandler

class logging.handlers.DatagramHandler(host, port) Returns a new instance of the DatagramHandler class intended to communicate with a remote machine whose address is given by host and port. Changed in version 3.4: If port is specified as None, a Unix domain socket is created using the value in host - otherwise, a TCP socket is created. emit() Pickles the record’s attribute dictionary and writes it to the socket in binary format. If there is an error with the socket, silently drops the p

logging.handlers.BufferingHandler.shouldFlush()

shouldFlush(record) Returns true if the buffer is up to capacity. This method can be overridden to implement custom flushing strategies.

logging.handlers.BufferingHandler.flush()

flush() You can override this to implement custom flushing behavior. This version just zaps the buffer to empty.

logging.handlers.BufferingHandler.emit()

emit(record) Appends the record to the buffer. If shouldFlush() returns true, calls flush() to process the buffer.