Simple, pretty, traffic-light logger
ampelog is an incredably lightweight traffic-light pattern logger, only a single, 7-element object in memory.
ampelog=require('ampelog');
ampelog.err('This is an error');
ampelog.inf('The process ran succesfully');
ampelog.wrn('You forgot to brush your teeth.');
Prints green, bold INF: next to the output. It's intended use is successful processes.
Prints yellow, bold WRN:
next to the output. It's intended use is non-fatal errors and warnings.
Prints red, bold ERR:
next to the output. It's intended use is fatal errors.