chill-winston

1.0.2 • Public • Published

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: {}

Readme

Keywords

none

Package Sidebar

Install

npm i chill-winston

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

3.71 kB

Total Files

5

Last publish

Collaborators

  • ollybollix