# @keystone-alpha/logger

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

Latest version **2.0.1** (published 2019-06-14) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @keystone-alpha/logger
pnpm add @keystone-alpha/logger
yarn add @keystone-alpha/logger
bun add @keystone-alpha/logger
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2019-06-14 |
| First published | 2019-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.4.0 |
| Dependencies | 3 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | The KeystoneJS Development Team |
| Maintainers | dominikwilkowski, jedwatson, jesstelford, mitchellhamilton, molomby, nathansimpson95, timl |

## Links

- npm: https://www.npmjs.com/package/@keystone-alpha/logger
- npm.io page: https://npm.io/package/@keystone-alpha/logger

## Dependencies (3)

- [pino](https://npm.io/package/pino.md) 5.11.1
- [falsey](https://npm.io/package/falsey.md) ^1.0.0
- [fast-memoize](https://npm.io/package/fast-memoize.md) ^2.4.0

## Recent versions

- 2.0.1 (latest) — 2019-06-14
- 2.0.0 — 2019-04-09
- 1.0.2 — 2019-03-18
- 1.0.1 — 2019-03-12
- 1.0.0 — 2019-03-07

## README

<!--[meta]
section: packages
title: Logger
[meta]-->

# Logger

## API

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

Provides an instance of [`pino`](https://github.com/pinojs/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).

---
_Source: https://npm.io/package/@keystone-alpha/logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
