Created
April 7, 2014 11:15
-
-
Save alappe/10018463 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
bunyan = require 'bunyan' | |
logger = bunyan.createLogger | |
name: 'try file' | |
streams: [ | |
type: 'stream' | |
stream: process.stdout | |
level: 'debug' | |
, | |
type: 'stream' | |
stream: process.stdout | |
level: 'info' | |
, | |
type: 'stream' | |
stream: process.stderr | |
level: 'error' | |
] | |
serializers: | |
req: bunyan.stdSerializers.req | |
res: bunyan.stdSerializers.res | |
logger.info 'hello info' | |
logger.debug 'hello debug' | |
logger.error 'hello error' |
Author
alappe
commented
Apr 7, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment