0.0.1 • Published 7 years ago

node-express-logging v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

node-express-logging npm version

A wrapper around winston and express-winston for logging within Express/NodeJS applications

Installation

npm install --save node-express-logging

Usage

const { logger, loggerMiddleware } = require('node-express-logging');

See example usage in example/.

Configuration

Set configuration as environment variables:

VariableAcceptsDescription
LOG_COLORS[true\|false]Colorize log output (this is mutually exclusive with LOG_JSON)
LOG_JSON[true\|false]Output logs in JSON format
LOG_LEVEL[levels]The level at which to log
LOG_META[true\|false]Whether or not to log additonal metadata in the request middleware