JSPM

mu-koan-logger

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q31019F
  • License MIT

Winston logger for mu-kōän applications

Package Exports

  • mu-koan-logger

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mu-koan-logger) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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