Last active
February 4, 2020 23:30
-
-
Save sidhantpanda/38f8ff3f1bdcd93f6d3f56a4783c4b34 to your computer and use it in GitHub Desktop.
logt-console-example
This file contains hidden or 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
// 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