Skip to content

Instantly share code, notes, and snippets.

@sidhantpanda
Last active February 4, 2020 23:30
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/38f8ff3f1bdcd93f6d3f56a4783c4b34 to your computer and use it in GitHub Desktop.
Save sidhantpanda/38f8ff3f1bdcd93f6d3f56a4783c4b34 to your computer and use it in GitHub Desktop.
logt-console-example
// Just copy and paste the following code in the console
var logt = createLogger(5);
function add(a, b) {
var logTag = '.add';
logt.debug(logTag, 'Adding', a, 'and', b);
var result = a + b;
logt.debug(logTag, 'Result:', result);
}
add(4, 6);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment