[PYTHON] You who color the log to make it easier to see

When you look at the log, it's painful if it's black and white. So I made you to color it and make it easier to see.

How to use

$ tail -f /var/log/apache2/*log | colorizer.sed $ pserve development.ini 2>&1 | colorizer.sed

before before.png

after after.png

download download

Recommended Posts

You who color the log to make it easier to see
One liner that formats JSON to make it easier to see
Deep learning dramatically makes it easier to see the time-lapse of physical changes
Expand devicetree source include to make it easier to read
Deploy the management page to production to make maintenance easier.
Color Python errors (stack traces) to make them easier to understand
Make the display of Python module exceptions easier to understand
A story that makes it easier to see Model debugging in the Django + SQLAlchemy environment
Django Make choices only for the facility you belong to
I tried to make a site that makes it easy to see the update information of Azure
Relive the dream you missed! (However, it is limited to Pepper)
Join csv normalized by Python pandas to make it easier to check
I wrote Django commands to make it easier to debug Celery tasks
What to do when you get "I can't see the site !!!!"
Make it easier to test programs that work with APIs with vcrpy
The easiest way to make Flask
A shell script to make sure you don't forget the pipenv shell again
Is it possible to extract the person's profile information from the chat log?
Gorilla judgment machine, gorilla! !! Tried to make it!
Make SikuliX's click function easier to use
Tips to make Python here-documents easier to read
Until you can read the error log
Use Pillow to make the image transparent and overlay only part of it
Linux: Netplan configuration guide to see when you want to fix the IP address
Make it easy to specify the time of AWS CloudWatch Events with CDK.