@lingua/logger
v1.0.2
Published
Simpler logger, a wrapper around winston and morgan that also exposes an express middleware
Downloads
2
Readme
Simpler logger, a wrapper around winston and morgan that also exposes an express middleware
$ npm install @lingua/logger
Usage
Creating a simple logger
const logger = require('@lingua/logger').createLogger('my-module');
// This is a winston logger, so all the normal methods of such will work
logger.info('Hi there');
Using the request logging middleware
const logger = require('@lingua/logger');
const express = require('express');
const app = express();
app.use(logger.middleware);