@keystone-alpha/logger

Common logging functionality used within @keystone-alpha/* packages.

All packages in the @keystone-alpha namespace are now available in the @keystonejs namespace, starting at version 5.0.0. To upgrade, update package.json to point to "@keystonejs/logger": "^5.0.0" and update any require/import statements in your code.
Last updated a year ago by timl .
MIT · Original npm · Tarball · package.json
$ cnpm install @keystone-alpha/logger 
SYNC missed versions from official npm registry.

Logger

API

require('@keystone-alpha/logger').logger(name)

Provides an instance of pino based on the given name.

Instances are cached and re-used, making it safe to request the same named instance across multiple files.

process.env.DISABLE_LOGGING

When set to any "truthy" value, will prevent any log output from occurring (particularly useful during test runs).

Current Tags

  • 2.0.1                                ...           latest (a year ago)

5 Versions

  • 2.0.1 [deprecated]           ...           a year ago
  • 2.0.0 [deprecated]           ...           2 years ago
  • 1.0.2 [deprecated]           ...           2 years ago
  • 1.0.1 [deprecated]           ...           2 years ago
  • 1.0.0 [deprecated]           ...           2 years ago

Copyright 2014 - 2016 © taobao.org |