This package has been deprecated

Author message:

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.

@keystone-alpha/logger

2.0.1 • Public • Published

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).

Readme

Keywords

none

Package Sidebar

Install

npm i @keystone-alpha/logger

Weekly Downloads

34

Version

2.0.1

License

MIT

Unpacked Size

2.74 kB

Total Files

5

Last publish

Collaborators

  • emmatown
  • jedwatson
  • molomby