1.0.4 • Published 5 months ago
express-json-logger v1.0.4
Express Json Logger
How to use logger
- First Import lib.
import ExpressLogger from 'ExpressLogger.js';
- Now you can ready to use logger.
- Get uniq id for your app from below link.
- Online UUID Generator
- Example
2a98cb2f-f1eb-4bfc-af99-5eb7f18d5b4b
- Now you can use this UUID as your app-name instead of real name.
app.use((req, res, next) => {
const logs = ExpressLogger.logger(req, res, "<UUID>");
console.log("logs >> ", logs);
next();
});