1.0.0 • Published 6 years ago
koa-logger-middleware v1.0.0
koa-logger-middleware
Configuration
- correlactionId: Boolean - add an correlactionId and set header X-Correlation-Id to it.
logger: Object - eg: winstonjs, by default is console with coloration.
```js const winstonLogger = winston.createLogger({ level: 'info', format: winston.format.json(), transports: [ new winston.transports.Console({ format: winston.format.simple(), colorize: true, }) ] }); logger({ logger: winstonLogger }); ```
See the file index.js to see all options
License
MIT © YSO Corp
1.0.0
6 years ago