npm install cream-soda
const logger = require("cream-soda");
// logging functions
logger.set("level", "info");
logger.fatal("this will be logged");
logger.error("this will be logged");
logger.warn("this will be logged");
logger.info("this will be logged");
logger.debug("this will not be logged");
logger.verbose("this will not be logged");
const logger = require("cream-soda");
const express = require("express");
let app = express();
// middleware
app.use(logger.access.middleware());
...
Detailed docs can be found here.
Generated using TypeDoc