You are probably like me, you always put some dirty logs in your software. You want to keep them dirty but you want fancy colors in your terminal, not in production, and you don't want to see this log displayed in your test output. At last, you don't care much about log level, the classical info/debug/warn/error is enough for you. Say welcome to printit the dirty logger with class!
The way printit displays things is changed via environment variable:
var printit = ;var log =;log;log;log;log;log =;log;log;log;
It is possible to use a custom
console, for example if you want to send logs
to a file:
var fs =var Console = Console;var printit = ;var out = fs;printitconsole = out out;var log =;log;