1.0.2 • Published 6 years ago

chill-winston v1.0.2

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
6 years ago

Chill Winston

A simple implementation of the Winston Logger

Install

npm i [-S|D] winston

Usage

const chillWinston = require('chill-winston');

// chillWinston(loggerLevel = 'info', file = null, opts = {})

const logger = chillWinston('debug', '/path/to/logfile.log', {})

logger.notice('My message', {
	my: 'addional',
	data: 'stuff',
});

Params

loggerLevel: Loglevel for Winston to use. See https://www.npmjs.com/package/winston#logging-levels. Default: 'info'

logfile: A file for Winston to log to. If null, will only log to console. Default: null

opts: Options object. Takes the following parameters. Default: {}

1.0.2

6 years ago

1.0.1

6 years ago