@franziz/morgan-middleware
v1.0.1
Published
This uses @franziz/logger to log morgan.
Downloads
2
Readme
Morgan Middleware
This is middleware to capture morgan to @franziz/logger
How to Use
Use import the middlware and call handle()
function. For example
import express from "express";
import MorganMiddleware from "@franziz/morgan-middleware";
const app = express();
app.use(MorganMiddlware.handle());
app.listen(3000, () => console.log("Connected to port 3000"));