express-middleware-log

1.2.0 • Public • Published

express-middleware-log NPM version

Install

npm install --save express-middleware-log

Usage

const logger = require("express-middleware-log"); // Include express-middleware-log in your application

app.use(logger("Before Middleware 1")); // Print "Before Middleware 1" at this point
app.use(logger(req => req.path)); // Print req.path at this point

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.00
1.1.00
1.0.00

Package Sidebar

Install

npm i express-middleware-log

Weekly Downloads

0

Version

1.2.0

License

MIT

Last publish

Collaborators

  • fishcharlie