Skip to content

Commit

Permalink
Include stdSerializers in custom bunyan logger example
Browse files Browse the repository at this point in the history
  • Loading branch information
jlai committed Oct 3, 2016
1 parent c3d665a commit 05438cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ Use an existing logger:
var bunyan = require('bunyan');
var koaBunyanLogger = require('koa-bunyan-logger');

var appLogger = bunyan.createLogger({name: 'myapp', level: 'debug'});
var appLogger = bunyan.createLogger({
name: 'myapp',
level: 'debug',
serializers: bunyan.stdSerializers
});

app.use(koaBunyanLogger(appLogger));
```
Expand Down

0 comments on commit 05438cf

Please sign in to comment.