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 | |
|---|---|---|---|
| fasthep_logging-2024.6.1.tar.gz | 15.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fasthep_logging-2024.6.1-py3-none-any.whl | Python 3 | none | any | Details |
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
|