Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@amazingandyyy/server-logger

0.0.4 • Public • Published

🗣️ server-logger

A simple server logger middleware.

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

Install

npm i @amazingandyyy/server-logger

DownloadsWeekly Downloads

9

Version

0.0.4

License

MIT

Unpacked Size

3.84 kB

Total Files

4

Last publish

Collaborators

  • avatar