Place the .multitailrc
in your home directory and then you can do the following;
multitail -f -cS python-log /path/to/my/python.log
colorscheme:python-log | |
cs_re_s:blue:[DEBUG|INFO|WARNING|CRITICAL|ERROR] ([a-z\.0-9\_]+): | |
cs_re_s:white,magenta,bold:(\sDEBUG\s) | |
cs_re:magenta:.*DEBUG.* | |
cs_re_s:white,green,bold:(\sINFO\s) | |
cs_re:green:.*INFO.* | |
cs_re_s:white,yellow,bold:(\sWARNING\s) | |
cs_re:yellow:.*WARNING.* | |
cs_re_s:white,red,bold:(\sCRITICAL\s) | |
cs_re:red:.*CRITICAL.* | |
cs_re_s:white,red,bold:(\sERROR\s) | |
cs_re:red:.*ERROR.* |
I made the timestamps color neutral by doing this: changing this "cs_re:green:.INFO." into this "cs_re:green:INFO.", removing the .
I can't get tracebacks to be colored in any meaningful way, so I'll leave it at that.