Skip to main content

Json log formatter

Project description

Json log formatter
=======================

.. image:: https://travis-ci.org/ObadaAlexandru/JsonLogFormatter.svg?branch=master
:target: https://travis-ci.org/ObadaAlexandru/JsonLogFormatter

Formats the log messages in a JSON format as follows:
.. highlight:: json
::
{ "description": "Some exception",
"log_type": "application_log"
"severity": "ERROR",
"source_file": "test.py",
"module": "test",
"thread": "MainThread",
"pid": 74607,
"stacktrace": "Traceback (most recent call last):\n File
\"test.py\", line 20, in <module>\n throw_exception()\n File \"/test.py\", line 15, in throw_exception\nraise ValueError('Some exception')\nValueError: Some exception",
"@timestamp": "2018-03-07T00:00:38.516213"}


A message in JSON format facilitates the logs processing.

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

JsonLogFormatter-1.0.1.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file JsonLogFormatter-1.0.1.tar.gz.

File metadata

File hashes

Hashes for JsonLogFormatter-1.0.1.tar.gz
Algorithm Hash digest
SHA256 89cb97e232403690bb11f506a070cc048f0d9846109e3d6f7bfdeff0c0ec0f80
MD5 4e5f8b6d0ce6f2d55c7796ee1e6c3bcd
BLAKE2b-256 d16ea3a93de96d88b53aaf02edd3d0ae3e73a0aa22b607b284737dcb733c86eb

See more details on using hashes here.

Supported by

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