Skip to content

Instantly share code, notes, and snippets.

@voxpelli
Last active July 28, 2016 11:37
Show Gist options
  • Save voxpelli/670e642b14aceba932c9d59a30497073 to your computer and use it in GitHub Desktop.
Save voxpelli/670e642b14aceba932c9d59a30497073 to your computer and use it in GitHub Desktop.
const stream = {
level: 'warn',
type: 'raw',
stream: { write: (obj) => {
console.log(
[
bunyan.nameFromLevel[obj.level],
obj.msg,
obj.err ? bunyan.stdSerializers.err(obj.err).stack : false
]
.filter(item => !!item)
.join(': ')
);
}}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment