This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VanillaJS Logger | |
// | |
// NOTE: You probably shouldn't use this in production... you've been warned. | |
let logger = {}; | |
// Log levels | |
// debug=0, info=1, log=2, warn=3, error=4 | |
const LOG_LEVELS = [ | |
"debug", | |
"info", |