Skip to main content

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


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)

Uploaded source

Built Distribution

jsonlog-0.0.1-py2.py3-none-any.whl (5.3 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page