Python Library Reference
Previous: Up: 14.5.5 Handler Objects Next:

14.5.5.11 HTTPHandler

The HTTPHandler class, located in the logging.handlers module, supports sending logging messages to a Web server, using either "GET" or "POST" semantics.

class HTTPHandler( host, url[, method])
Returns a new instance of the HTTPHandler class. The instance is initialized with a host address, url and HTTP method. 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.

emit( record)
Sends the record to the Web server as an URL-encoded dictionary.


Python Library Reference
Previous: Up: 14.5.5 Handler Objects Next:

Release 2.5.2, documentation updated on 21st February, 2008.
See About this document... for information on suggesting changes.

AltStyle によって変換されたページ (->オリジナル) /