bunyan-morgan
Gives bunyan like (js object) format to morgan's log format
Install
npm install bunyan-morgan
Compatible
- express
- connect
- connect like libraries
- bunyan (as a serializer)
Usage
For Express as middleware
const bm = ;const app = ; app; // pass morgan's predefined formatapp; app;
For Express as bunyan serializer
const bunyan = ;const bm = ;const app = ; let logger = bunyan; app; app;
Morgan's Predefined formats
Format of morgan not yet supported
dev
Test
npm test