mu-koan-logger
Winston logger for mu-kōän applications
Last updated 4 years ago by nfantone .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mu-koan-logger 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.2                                ...           latest (4 years ago)

3 Versions

  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (17)

Copyright 2014 - 2016 © taobao.org |