# @koikorn/logger

> Common logging functionality used within @koikorn/* packages.

Latest version **5.1.2** (published 2020-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @koikorn/logger
pnpm add @koikorn/logger
yarn add @koikorn/logger
bun add @koikorn/logger
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.1.2 |
| Published | 2020-07-13 |
| First published | 2020-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.0.0 |
| Dependencies | 3 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | The KeystoneJS Development Team |
| Maintainers | lorenhaim |

## Links

- npm: https://www.npmjs.com/package/@koikorn/logger
- Repository: https://github.com/keystonejs/keystone/tree/master/packages/logger
- npm.io page: https://npm.io/package/@koikorn/logger

## Dependencies (3)

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

## Recent versions

- 5.1.2 (latest) — 2020-07-13

## README

<!--[meta]
section: api
subSection: utilities
title: Logger
[meta]-->

# Logger

## API

### `require('@koikorn/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/@koikorn/logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
