Log your errors directly to the console and to a .log file
asterki.github.io/file-error-logging
Asterki/file-error-logging