Last active
August 29, 2015 14:22
-
-
Save serkanberksoy/74117ad6efc0e035d291 to your computer and use it in GitHub Desktop.
Simple Trace Logger With Commas
This file contains 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
// usage logTrace("name", val1, "name2", val2); | |
function logTrace() | |
{ | |
var result = "TRACE : "; // you may add milliseconds here | |
for(var i = 0; i < arguments.length; i++) | |
{ | |
if(i > 0) | |
{ | |
result += " - "; | |
} | |
result += arguments[i]; | |
} | |
console.log(result); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment