Skip to content

Instantly share code, notes, and snippets.

View RaviGhaghada's full-sized avatar

Ravi Ghaghada RaviGhaghada

  • Expedia Group
  • London, UK
View GitHub Profile
// 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",