https://www.kimpel.com/2010/10/06/javascript-logging/
JavaScript Logging