Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amazingandyyy/server-logger

🗣️ Simple server logger
https://github.com/amazingandyyy/server-logger

developer-tool log logger logs middleware morgan nodejs opensource scratchese server utility

Last synced: about 1 month ago
JSON representation

🗣️ Simple server logger

Awesome Lists containing this project

README

        


🗣️ server-logger



A simple server logger middleware.











> ZERO dependencies

## Installation

```shell
$ npm i --save @amazingandyyy/server-logger
```

## Usage

```javascript
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