YerkoPalma / tiny-log

Simple and small logger for node and the browser.
MIT License
1 stars 0 forks source link

catch uncaught exceptions as fatal errors #3

Open YerkoPalma opened 7 years ago

YerkoPalma commented 7 years ago

Consider instead of catching errors globally, introduce something like

log.error(err)

So, the error method can also accept an exception object, and print it differently

YerkoPalma commented 7 years ago