Skip to content

Instantly share code, notes, and snippets.

@LeanSeverino1022
Created April 1, 2021 12:36
Show Gist options
  • Save LeanSeverino1022/32a891a36cb71457351bfc17672f6b8c to your computer and use it in GitHub Desktop.
Save LeanSeverino1022/32a891a36cb71457351bfc17672f6b8c to your computer and use it in GitHub Desktop.
console.log formatting #vanillajs #debugging

Examples

window.myConsole = {};
myConsole.log = msg => {
    console.log('%c%s', 'color: #fff; background: red; font-size: 14px;', msg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment