@keystonejs/logger
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/keystonejs__logger package

6.0.0 • Public • Published

Logger

Deprecation notice This module is no longer maintained. Please directly use pino or the logging library of your choice.

API

require('@keystonejs/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 @keystonejs/logger

Weekly Downloads

42

Version

6.0.0

License

MIT

Unpacked Size

6 kB

Total Files

5

Last publish

Collaborators

  • emmatown
  • jedwatson
  • molomby
  • bladey