fasthep-logging
The FAST-HEP logging package adds two new log levels to the standard Python logging:
TRACEis the most verbose level, and is used for debugging purposes.TIMINGis used to log timing information. Log level is betweenDEBUGandWARNING.
In addition, this package sets a logging standard for FAST-HEP projects:
- per-log-level formatting
- log file support
Example
from fasthep_logging import get_logger, TRACE
log = get_logger("FASTHEP::Carpenter")
log.setLevel(TRACE)
...
log.debug("This is a debug message %s", msg)
log.trace("This is a verbosity level higher than DEBUG")
from codetiming import Timer
with Timer(
text=f"Processing data took {{:.3f}}s for {file_path}",
logger=log.timing, # type: ignore[attr-defined]
):
process_data(file_path)
Metadata
Release files for fasthep-logging 2024.6.1
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 |
|---|---|---|---|---|
| fasthep_logging-2024.6.1.tar.gz | 15.8 kB | Without provenance | Details for fasthep_logging-2024.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fasthep_logging-2024.6.1-py3-none-any.whl | Python 3 | none | any | Details for fasthep_logging-2024.6.1-py3-none-any.whl |
Total release size: 25.4 kB
Release files / fasthep_logging-2024.6.1.tar.gz
| Download URL | fasthep_logging-2024.6.1.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebeaccf4cb1d2226e329a20da53b8213e18d3b418cc2df1ca4d2544ac79d96d9
|
|
BLAKE2b-256 checksum How to use checksums |
a88d0262db38d19a47043d60efcda2bf3edf7f59cafec44697b1d703f57fc31f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.4
|
Release files / fasthep_logging-2024.6.1-py3-none-any.whl
| Download URL | fasthep_logging-2024.6.1-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8795bb913126c8ab3916dbbc83affdfc9929043f0916202956d0a3b0ca5c42c0
|
|
BLAKE2b-256 checksum How to use checksums |
21ae4ac8ef71f9db546fd046f473e379ddee8237404160518415c6cf173939ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.4
|
Security for fasthep-logging 2024.6.1
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.