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 hashes)
Built Distribution
Close
Hashes for jsonlog-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 504ec937250b04d107be2253c09c6da26cd6e3477b6fe00837cd7f16321e23bc |
|
MD5 | 622ca6e0e6424422f96d181727dfcf5c |
|
BLAKE2b-256 | fc8a127f96be96c1cb4ec0b3bc390cebf33c8524726f550e195cae9e5da0dfba |