Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leny/mitan-eko
(really) simple log middleware for express
https://github.com/leny/mitan-eko
Last synced: 7 days ago
JSON representation
(really) simple log middleware for express
- Host: GitHub
- URL: https://github.com/leny/mitan-eko
- Owner: leny
- License: unlicense
- Created: 2016-03-03T08:23:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-22T18:48:37.000Z (about 5 years ago)
- Last Synced: 2024-10-13T16:51:41.158Z (about 1 month ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mitan-eko
[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)
> (really) simple log middleware for express
* * *
**mitan-eko** is a simple (really, really simple) middleware to log requests in express.
## Installation
`npm install --save mitan-eko`
## Documentation
**mitan-eko** is a middleware for express. It is written in ES2015, and you can use like this :
```javascript
import express from "express";
import mitanEko from "mitan-eko";let app = express();
// (...) configure express
app.use( mitanEko( "my super app" ) );
app.listen( 8080 );
```
All the requests passing by the middleware will be logged with [zouti.log](https://www.npmjs.com/package/zouti#zoutilog-message-context-type-), and the optional parameters given to the middleware is the `context` passed to `zouti.log`.
## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Lint your code using eslint.
## Release History
0.1.0: initial release (03/03/2016)