Replaces the console object with a more stylish and practical way of displaying messages.
Replaces your console object with a more stylish and practical way of displaying notices,warn,info,debug,log and errors.
It automagically shows you the line number and filename where the command was executed, along with a timestamp.
There is also the ability to catch uncaughtExceptions, disable the output colors, and log to file.
You can also setup filters if you want to hide certain debug message types.
npm install console-debug
var Debug = ;var console =uncaughtExceptionCatch: false // Do we want to catch uncaughtExceptions?consoleFilter: 'LOG' 'WARN' // Filter these console output typeslogToFile: true // if true, will put console output in a log file folder called 'logs'logFilter: 'LOG''DEBUG''INFO' // Examples: Filter these types to not log to filecolors: true // do we want pretty pony colors in our console output?;
console;console;console;console;console;// can also display objectsobj =test1: 1234test3: "ohai""there"test4: true;console;
You can contact me at firstname.lastname@example.org