Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can I automatically add color to a log.txt file?

I look after logs from various sources, some of which are difficult to read, especially with ADHD. Is there a known way to paste or upload a text file and have it automatically colorized for readability?

e.g. text inside of double quotes gets colored green for a string and it takes common conventions like ERROR/INFO and makes them red/grey.

This question is specifically about logs that have already been created, not an integrated solution that colorizes logs as they are created.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

This is the kind of things that your text reader can handle for you.

If you are using Visual Studio Code, check out https://marketplace.visualstudio.com/items?itemName=emilast.LogFileHighlighter

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading