logging extensions for pythons logging library
Project description
loggext-py
logging extensions for pythons logging library
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
loggext-0.1.0.tar.gz
(16.4 kB
view details)
Built Distribution
loggext-0.1.0-py3-none-any.whl
(16.5 kB
view details)
File details
Details for the file loggext-0.1.0.tar.gz
.
File metadata
- Download URL: loggext-0.1.0.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a9fd2242feb897b1f782732e2b1ee410753f99b55a9fcd5ca9072fbd98c569f |
|
MD5 | d420306d3a94382729fc7a4be1fd0278 |
|
BLAKE2b-256 | c62866fa7b73f48f7cea660fb3646c3a36321efce63fa8c9f36a17990b39fc72 |
File details
Details for the file loggext-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: loggext-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42569b164b8b819debaf0f78d57b3ef3f3f42142d09ea20fd47ff8ae52fedb60 |
|
MD5 | eeed4ab5836756d4d9d43219731b654c |
|
BLAKE2b-256 | f396ebbefd55a4b76ee601919929afc2bfbd6675fd90bac4708fdfe320908747 |