loggext 0.1.0

Creator: codyrutscher

Last updated:

Add to Cart

Description:

loggext 0.1.0

loggext-py
logging extensions for pythons logging library


loggext-py

Installation
Usage




Installation
pip install loggext

Usage
import logging
from loggext.decorators import add_logging

logging.basicConfig(level=logging.NOTSET)

@add_logging()
def myfn(arg):
... # stuff

myfn("value")
# DEBUG:root:<function myfn at 0x7f06a6cc3400> was called with ('value')
# DEBUG:root:<function myfn at 0x7f06a6cc3400> returned None after 65μs+614ns

License

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

Customer Reviews

There are no reviews.