Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ipmb/readable-log-formatter
- Owner: ipmb
- License: bsd-3-clause
- Created: 2017-11-03T21:31:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-03T22:21:36.000Z (about 7 years ago)
- Last Synced: 2024-11-11T13:42:45.464Z (3 months ago)
- Topics: development, logging, python
- Language: Python
- Size: 142 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
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 ReadableFormatterlog = 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