Skip to content

nfantone/mu-koan-logger

Repository files navigation

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

Greenkeeper badge

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

About

Shared logger for mu-kōän applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published