Skip to content

Instantly share code, notes, and snippets.

@sidhantpanda
Created September 24, 2019 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sidhantpanda/2b016bf0db000fd06ece1efee7046610 to your computer and use it in GitHub Desktop.
Save sidhantpanda/2b016bf0db000fd06ece1efee7046610 to your computer and use it in GitHub Desktop.
const logger = new LogT(0);
logger.warn('TAG', 'warning message'); // Will not print anything to console
logger.info('TAG', 'info message'); // Will not print anything to console
logger.debug('TAG', 'debug message'); // Will not print anything to console
logger.silly('TAG', 'silly message'); // Will not print anything to console
logger.showHidden(1); // Will print the warning message
logger.showHidden(2); // Will print the info warning message
logger.showHidden(5); // Will print the debug as well as silly message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment