logging-extended-handlers 0.1.0

Creator: bradpython12

Last updated:

Add to Cart

Description:

loggingextendedhandlers 0.1.0

logging-extended-handlers




Table of Contents

About
Installation
Usage
License

About
This package contains the following loggers:

HTTPHandlerCustomHeader: Like logging.handlers.HTTPHandler but with full freedom of the HTTP header
BufferingSMTPHandler: Buffers the logs like logging.handlers.BufferingHandler and sends it via smtp

Similar projects with differen handlers:

logging-nice-handlers

Installation
pip install logging-extended-handlers

Usage
Eg.
logger = logging.getLogger()
logger.setLevel("DEBUG")
my_logger = MyLogger(...)
my_logger.setLevel("INFO")
my_formatter = logging.Formatter(
fmt="%(asctime)s %(levelname)s by %(funcName)s: %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
style="%",
)
my_logger.setFormatter(my_formatter)
logger.addHandler(my_logger)

License
logging-extended-handlers is distributed under the terms of the MIT license.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.