Skip to content

Instantly share code, notes, and snippets.

@conanak99

conanak99/logImproved.js Secret

Last active Feb 2, 2016
Embed
What would you like to do?
function log(level, time, message) {
console.log(level + ' - ' + time + ': ' + message);
}
function logErrToday(message) {
log("Error", "Today", message);
}
logErrToday("Server die."); // Error - Today: Server die.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment