logoran-logger
v1.0.1
Published
Logging middleware for logoran
Downloads
5
Readme
logoran-logger
Development style logger middleware for logoran.
2018-03-09 16:10:21 <-- GET /
--> GET / 200 835ms 746b
2018-03-09 16:10:21 <-- GET /
--> GET / 200 960ms 1.9kb
2018-03-09 16:10:21 <-- GET /users
--> GET /users 200 357ms 922b
2018-03-09 16:10:21 <-- GET /users?page=2
--> GET /users?page=2 200 466ms 4.66kb
Installation
$ npm install logoran-logger
Example
const logger = require('logoran-logger')
const Logoran = require('logoran')
const app = new Logoran()
app.use(logger())
Notes
Recommended that you .use()
this middleware near the top
to "wrap" all subsequent middleware.
License
MIT