Skip to content
KeystoneJS LogoKeystoneJSv5

Logger

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

Have you found a mistake, something that is missing, or could be improved on this page? Please edit the Markdown file on GitHub and submit a PR with your changes.

Edit Page