Skip to content

Instantly share code, notes, and snippets.

@craigp
Created November 25, 2014 10:09
Show Gist options
  • Save craigp/70aba4280f0822fdbc12 to your computer and use it in GitHub Desktop.
Save craigp/70aba4280f0822fdbc12 to your computer and use it in GitHub Desktop.
(function p(msg, meta, formatArgs, args) {
var arg = args.shift();
if (arg) {
if (typeof(arg) !== 'object')
formatArgs.push(arg);
else
meta = arg;
p(msg, meta, formatArgs, args);
} else
self._logger[level].apply(self._logger, [].concat.apply([], [meta, msg, formatArgs]));
})(args.shift(), {}, [], args);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment