Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@AlJohri
AlJohri / .block
Last active May 6, 2018 10:30 — forked from mbostock/.block
Bubble Chart
license: gpl-3.0
height: 940
border: no
@AlJohri
AlJohri / colourised_log_example.py
Created May 6, 2016 21:13 — forked from exhuma/colourised_log_example.py
Simple python log formatter for colourised terminal output.
"""
Example for a colourised logging output.
This example uses "blessings" to handle console escape sequences. ``blessings``
itself is a very harmless package in that it does not have any external
dependencies. And it's code-base is very clean and small.
The example extends the core logging formatter (logging.Formatter) and
colourises the complete line. This takes advantage of any upstream updates
related to logging. When writing this against Python 2.7, the parent code