0.2.4 • Published 6 years ago

express-recall v0.2.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Recall

NPM Version NPM Downloads License

Installation

$ npm install --save express-recall
# OR
$ yarn add express-recall

Usage

The express-recall module is used as any other express middleware; using the .use() function on your app instance.

import express from 'express'
import recall from 'express-recall'

const options = { ... }

const app = express()
app.use(recall.configure(options))

...

Options RecallConfig

PropertyTypeDescriptionDefault
fileNamestringname of the log file that is created'recall.express.log'
activebooleanwhether the middleware is active at loadtrue
capacitynumbermax # of requests to log before suspending300

API

.configure(options: RecallConfig)

Configures the Recall middleware instance and returns the middleware function to be set in the Express.use function when initializing your Express server

.suspend()

Temporarily disable request logging until specified.

.resume()

Enabled request logging after being suspended or deactivated.

License

MIT

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.2

6 years ago