Clearcut: A straightforward and lightweight logging wrapper library
This provides some helpful wrapper and util functions for logging, and formats log messages in a more human-readable way by default.
Use
At the top of the file:
from clearcut import get_logger
...
logger = get_logger(__name__)
Logging can be performed ad-hoc:
logger.info("info log")
logger.warning("warn log", exc_info=e)
"log blocks" can also be created which automatically log entrance/exits as well as performance information
from clearcut import log_block, get_logger
...
logger = get_logger(__name__)
...
with log_block("block name", logger):
...
TODO
- Would like to use contextvars to create a contextmanager where additional "metadata" can be specified (and unspecified) which would be included with logging automatically. (may not be import with OTLP tracing.)
- json logging
Metadata
Release files for clearcut 0.2.2.post0
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 |
|---|---|---|---|---|
| clearcut-0.2.2.post0.tar.gz | 4.3 kB | Without provenance | Details for clearcut-0.2.2.post0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clearcut-0.2.2.post0-py3-none-any.whl | Python 3 | none | any | Details for clearcut-0.2.2.post0-py3-none-any.whl |
Total release size: 9.1 kB
Release files / clearcut-0.2.2.post0.tar.gz
| Download URL | clearcut-0.2.2.post0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fd8da473f0be3e3c7bfff2900084672f8f5d25e0f710ed5c4f03b2472cd4797
|
|
BLAKE2b-256 checksum How to use checksums |
983ee36dc08f7bde6725239ce8fb641f46b7eb5ae226b7a71ace22c71924311b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.12 Linux/4.15.0-20-generic
|
Release files / clearcut-0.2.2.post0-py3-none-any.whl
| Download URL | clearcut-0.2.2.post0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f6d08ad9f8bb116e10a631e3fa8149eb79b0d9ed29ee45fc4f6aff95bf6d319
|
|
BLAKE2b-256 checksum How to use checksums |
b8cfaf84b05758f01395846addaf534393f4867f2bc9925be101e2187133ae82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.12 Linux/4.15.0-20-generic
|
Security for clearcut 0.2.2.post0
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.