Package logging :: Module handlers :: Class HTTPHandler
[hide private]
[frames] | no frames]

_ClassType HTTPHandler

Filterer --+    
           |    
     Handler --+
               |
              HTTPHandler

A class which sends records to a Web server, using either GET or POST semantics.

Instance Methods [hide private]
 
__init__(self, host, url, method='GET')
Initialize the instance with the host, the request URL, and the method ("GET" or "POST")
 
mapLogRecord(self, record)
Default implementation of mapping the log record into a dict that is sent as the CGI data.
 
emit(self, record)
Emit a record.

Inherited from Handler: acquire, close, createLock, flush, format, handle, handleError, release, setFormatter, setLevel

Inherited from Filterer: addFilter, filter, removeFilter

Method Details [hide private]

__init__(self, host, url, method='GET')
(Constructor)

 

Initialize the instance with the host, the request URL, and the method ("GET" or "POST")

Overrides: Filterer.__init__

mapLogRecord(self, record)

 

Default implementation of mapping the log record into a dict that is sent as the CGI data. Overwrite in your class. Contributed by Franz Glasner.

emit(self, record)

 

Emit a record.

Send the record to the Web server as an URL-encoded dictionary

Overrides: Handler.emit