Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ipmb/readable-log-formatter

A human readable log format for Python
https://github.com/ipmb/readable-log-formatter

development logging python

Last synced: 2 months ago
JSON representation

A human readable log format for Python

Awesome Lists containing this project

README

        

Pretty logs for local development.

.. code-block:: python

pip install readable-log-formatter

Provides the class ``readable_log_formatter.ReadableFormatter`` to be used
with Python's logging:

.. code-block:: python

import logging
from readable_log_formatter import ReadableFormatter

log = logging.getLogger()
log.setLevel(logging.INFO)
hndl = logging.StreamHandler()
hndl.setFormatter(ReadableFormatter())
log.addHandler(hndl)

.. image:: https://raw.githubusercontent.com/ipmb/readable-log-formatter/master/.screenshot.png
:alt: readable-log-formatter screenshot