structlog-overtime
Utilities for structlog with the goal of enabling complex use cases without having to defer to standard library logging.
Features
- TeeLoggerFactory: copy events to multiple destinations (e.g. console and file)
- MockLoggerFactory: accumulates events in a list (useful for tests)
- FilterMethods: filter events based on the method that was called (i.e. filter by log level)
- FilterKeys: adjust which fields are included in your event dicts
- TimezoneAwareTimeStamper: make your timestamps explicitly include a timezone
- bind: type-preserving wrapper around BoundLogger.bind
- noop: a processor that gloriously does nothing
The name?
https://www.youtube.com/watch?v=GnEmD17kYsE
Development
Running the tests
git clone git@github.com:kierdavis/structlog-overtime.git
cd structlog-overtime
python3 -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'
pytest
Making a release
- Bump the version number in
setup.py - Commit the version nummber change:
git commit - Publish to PyPI and create git tag:
carthorse --config carthorse.yaml
Release files for structlog-overtime 1.0.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 | |
|---|---|---|---|
| structlog-overtime-1.0.1.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| structlog_overtime-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.6 kB
Release files / structlog-overtime-1.0.1.tar.gz
| Download URL | structlog-overtime-1.0.1.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebcee7557152a9a3ef3e2ad662d10d556341ae82fb2d6e9ac45c50f760a4c43f
|
|
BLAKE2b-256 checksum How to use checksums |
6181c219eae7d5cfbdab16788e3fdbb92b58769c536e603485cd2658fe328832
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.6.8
|
Release files / structlog_overtime-1.0.1-py3-none-any.whl
| Download URL | structlog_overtime-1.0.1-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0dcf38551a288123b9c1d5f7a0ae95a9dec944792c09e9f8a764d350978bb2aa
|
|
BLAKE2b-256 checksum How to use checksums |
1ee150809d5be6ed071cf1937e18cebf084b29166b1287315e2451e52d72e8fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.6.8
|