Nutella with Pepperoni and Mushrooms
Miss any of our Open RFC calls?Watch the recordings here! »

mu-koan-logger

1.0.2 • Public • Published

mu-kōän-logger 公案-ログ

Build Status

A winston logger provider for mu-kōän applications.

js-semistandard-style

npm i --save mu-koan-logger

Usage

Returns a winston.Logger given an options.logger property and a set of prioritized rules.

  • If options.logger is a string, returns winston.loggers.get(options.logger).
  • If options.logger is a winston.Logger instance, returns that same instance.
  • If it is neither, return winston's default logger.
const logger = require('mu-koan-logger');
 
/**
 * Returns `winston.loggers.get('my-logger')`.
 */
var log = logger.get({ logger: 'my-logger' })

License

MIT

Install

npm i mu-koan-logger

DownloadsWeekly Downloads

3

Version

1.0.2

License

MIT

Last publish

Collaborators

  • avatar