@amazingandyyy/server-logger
v0.0.4
Published
A simple server logger middleware.
Downloads
6
Maintainers
Readme
ZERO dependencies
Installation
$ npm i --save @amazingandyyy/server-logger
Usage
const NodeServer = require('@amazingandyyy/node-server')
const logger = require('@amazingandyyy/parser-logger')
app.use(logger('dev'))
app.on('get', '/', (req, res) => {
res.send(200)
})
app.start({ port: '4000' })
Messages
21:29:42 404 GET /fafafa
21:29:46 200 GET /
21:29:47 200 GET /
21:29:42 500 GET /fafafa?fad
21:29:49 200 GET /
License
MIT