npm.io
2.0.1 • Published 7 years ago

@keystone-alpha/logger

Licence
MIT
Version
2.0.1
Deps
3
Size
3 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

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