SPLogger
Logger with publish/subscribe mechanism. Writes to file and stdout/stderr
USAGE
const SPLogger = ;const logger = ; // using default options logger; const subscriber = console; logger;logger;// similiar:logger; // output: // Sat Oct 14 2017 23:04:57 GMT+0100 (BST) :: _log_ :: logging.....! /*1. stdout is set to true -> you will see an output to stdout (log) or stderr (error),2. path is set -> file write will be attempted. IO error will go to stderr.3. all subscribers get notified.*/ const callme = console;logger; // async// * throws Error if no path provided, IO errors go to stderr // clears log file if path providedlogger; // sync