My logging helper library
Quicklogging is intended for 2 purposes:
shrink the boilerplate I need before I can log something by a few bits,
without changing the body of source code, change quick and dirty print()’ing scripts into enterprise class software that logs.
What quicklogging does
Quicklogging provides you with handy loggers named after the current module.
import quicklogging
my_logger = quicklogging.get_logger()
This allows for silencing or raising the logging level for a specific part or a whole hierarchy of (sub-)packages (ie. folders, in Python’s slang).
Quicklogging can handle legacy calls to print() . This means that the working code can stay as-is and still get logged
import quicklogging
# Catches prints in the current module
quicklogging.catch_prints()
# Catches prints everywhere in the Python process
quicklogging.catch_prints(catch_all=True)
# -> does not print to stdout anymore, but is logged.
print("hello world")
What quicklogging does NOT
Quicklogging does not configure the logging formatting or output as this would not save any line; here is a basic example for general purpose code: Quick survival guide with the logging module.
Quicklogging quality
Quicklogging is covered by a test suite and has been working for years for me, but I wouldn’t promise there is no bug.
I have tried documenting the code but would welcome proofreading; the API may change after discussion.
Metadata
Release files for quicklogging 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| quicklogging-0.4.tar.gz | 6.6 kB | Without provenance | Details for quicklogging-0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quicklogging-0.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for quicklogging-0.4-py2.py3-none-any.whl |
Total release size: 12.9 kB
Release files / quicklogging-0.4.tar.gz
| Download URL | quicklogging-0.4.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69381328a4e9c491e642369567532e28ac0db6823f63a3a462994116d235c755
|
|
BLAKE2b-256 checksum How to use checksums |
09e83dcdf123cb000e809aaa8c9cc14ecf0abd742fbf48d9b85e111f6fc046c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / quicklogging-0.4-py2.py3-none-any.whl
| Download URL | quicklogging-0.4-py2.py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e6345d77f324c96d0565f1afff16631dc8a4e408440455f167f3669c967c9d83
|
|
BLAKE2b-256 checksum How to use checksums |
00cedb3c4cf38c4e0870c07c26d9044aa8076322bff5f6b6cfa143cb4c22f09d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for quicklogging 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.