JSON log formatting for the Python logging library.
Project description
jsonlog
A drop-in formatter for Python's logging
library that outputs messages as line
delimited JSON.
Usage
You can use jsonlog
as a drop-in replacement for logging
:
import jsonlog
def main():
jsonlog.basicConfig()
jsonlog.info("Application started.")
if __name__ == '__main__':
main()
Compatibility
jsonlog
is written for Python 3.7 and above. Compatibility patches will be
accepted for Python 3.5 and above, but patches for Python 2 will be rejected.
Authors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jsonlog-0.0.1.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file jsonlog-0.0.1.tar.gz
.
File metadata
- Download URL: jsonlog-0.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 429e70fae894b948fde83c449e027549c13c20b47cd5f611083ddd3efc538930 |
|
MD5 | 33496a9093266ee50de4c3f428c325bd |
|
BLAKE2b-256 | 6bfe2261723777e57b8bd44d664fd5e34c56b43c9825a871664ee7938768c4d5 |
File details
Details for the file jsonlog-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: jsonlog-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 504ec937250b04d107be2253c09c6da26cd6e3477b6fe00837cd7f16321e23bc |
|
MD5 | 622ca6e0e6424422f96d181727dfcf5c |
|
BLAKE2b-256 | fc8a127f96be96c1cb4ec0b3bc390cebf33c8524726f550e195cae9e5da0dfba |