This module provides colorful error logging. When included, it intercepts console.error. It will print the file and line number where console.error() was called. Any Error object passed into it as an argument, will be printed as a string, as well as the callstacks for all Error objects are printed at the end.
;console;console; // no info addedconsole;
The module actually exports a function, which can be used to modify the behavior.
errorTag: '[HAPPY]'rainbow ;timestamp: true ;
- errorTag Change the error tag string. Use
nullor and empty string to not log an error tag. Default:
- timestamp Add the current timestamp in ISO string format . Default: