Skip to content

This HTTPHandler is a replacement class for Pythons HTTP logging handler, supporting HTTPS and basic authorization.

License

Notifications You must be signed in to change notification settings

chmller/HTTPHandler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTPHandler

This HTTPHandler is a replacement class for Pythons HTTP logging handler by Viany Sajip. This class also supports HTTPS and basic authorization.

Usage

import logging
from httphandler import HTTPHandler


logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger('mylogger')
auth = ('username', 'password')
http_handler = HTTPHandler(
    'localhost:1337',
    '/api/logger',
    method='POST',
    secure=True,
    authorization=auth)
logger.addHandler(http_handler)
logger.debug('testing remote logging')

About

This HTTPHandler is a replacement class for Pythons HTTP logging handler, supporting HTTPS and basic authorization.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages