1.0.2 • Published 7 years ago

@lingua/logger v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
7 years ago

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);
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago