Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leonmwandiringa/superdooper
superdooper is a Lightweight blazing fast HTTP request logger middleware for node.js for logging request metrics and stats.
https://github.com/leonmwandiringa/superdooper
Last synced: 11 days ago
JSON representation
superdooper is a Lightweight blazing fast HTTP request logger middleware for node.js for logging request metrics and stats.
- Host: GitHub
- URL: https://github.com/leonmwandiringa/superdooper
- Owner: leonmwandiringa
- License: gpl-3.0
- Created: 2018-09-05T19:14:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-08-29T19:46:37.000Z (about 2 years ago)
- Last Synced: 2024-05-16T08:12:49.853Z (6 months ago)
- Language: JavaScript
- Size: 56.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-blazingly-fast - superdooper - superdooper is a Lightweight blazing fast HTTP request logger middleware for node.js for logging request metrics and stats. (JavaScript)
README
# superdooper
superdooper is a Lightweight blazing fast HTTP request logger middleware for node.js for logging request metrics and stats.
## Features
logging incoming requests -----------------
Request Time in UTC |
Remote IP address |
Request method |
Request URL |
Http-version |
Response Status |
Response Content Length |
Request Referrer |
Request User-agent |
Response time |
Cpu usage Time |
Memory used to process request |## Importing
```javascript
// Using Node.js `require()`
const superdooper = require('superdooper');// Using ES6 imports
import superdooper from 'superdooper';
```## Contributors
Currently the module is being mainatined by [Leon Tinashe Mwandiringa](https://twitter.com/0xL3onardo)
more contributors are welcome## Installation
First install [node.js](http://nodejs.org/). Then:
```sh
$ npm install superdooper
```## Overview
### Using superdooper
```js
const app = require('express')();
const superdooper = require('superdooper');
const port = 3000;app.use(superdooper('loggingfilelocation.log'));
app.get('/', function(req, res){
res.status(200).send('its working');
});app.listen(port, function(err){
if(err){
throw new Error("an error just occured "+err);
}console.log('app is running on port '+ port);
});
```
if you dont want to log to afile you can write the middleware without any parameters## License
Copyright (c) 2018 Leontinashe <[email protected]>
This module is licensed under GPL Liense v3.0