Skip to content

Instantly share code, notes, and snippets.

@shama
Created August 28, 2013 16:27
Show Gist options
  • Save shama/6368024 to your computer and use it in GitHub Desktop.
Save shama/6368024 to your computer and use it in GitHub Desktop.
format with a cb
var cb = log.format({
message: 'this\nis\na\ntest\n',
indent: 1,
format: function(line, pad) {
return util.format($.cyan('info') + $.gray(' %s') + '%s', pad, line) + (Array(20 - line.length).join('~'));
}
});
console.log(cb);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment