Created
May 8, 2015 04:02
-
-
Save koduki/e490b0814b33cd2f90b6 to your computer and use it in GitHub Desktop.
my js utils.
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
// LTSV format logger. | |
function log(event_name, params){ | |
var msg = "event:" + event_name; | |
for(var key in params){ | |
msg += "\t" + key + ":" + params[key]; | |
} | |
console.log(msg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment