Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/amazingandyyy/server-logger
- Owner: amazingandyyy
- License: mit
- Created: 2019-08-15T04:32:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T12:09:33.000Z (almost 3 years ago)
- Last Synced: 2024-10-28T04:13:05.024Z (3 months ago)
- Topics: developer-tool, log, logger, logs, middleware, morgan, nodejs, opensource, scratchese, server, utility
- Language: JavaScript
- Homepage:
- Size: 174 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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