Application Management
Papertrail ANSI Log Colorization examples
This document shows how to set log colors with ANSI escape code examples
First published date
Last published date
Overview
Product section
Cause
Resolution
Here are the examples:
<14>1 - host prog - - - This is \e[31mRED\e[0m <14>1 - host prog - - - This is \e[32mGREEN\e[0m <14>1 - host prog - - - This is \e[34mBLUE\e[0m <14>1 - host prog - - - This is \e[31mR\e[32mG\e[34mB\e[0m color <14>1 - host prog - - - This is \e[36mCyan\e[0m <14>1 - host prog - - - This is \e[33mYellow\e[0m <14>1 - host prog - - - This is \e[35mMagenta\e[0m <14>1 - host prog - - - \e[36mCyan\e[0m, \e[33mYellow\e[0m, \e[35mMagenta\e[0m, \e[37mWhite
A screenshot of the output from the Papertrail Event viewer: