# bunyan-duckling

> Maps the major Bunyan logging methods to console.log/error

Latest version **1.0.2** (published 2016-07-06) · MIT license · 0 weekly downloads

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

## Install

```sh
npm install bunyan-duckling
pnpm add bunyan-duckling
yarn add bunyan-duckling
bun add bunyan-duckling
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-07-06 |
| First published | 2015-04-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Pelle Wessman |
| Maintainers | voxpelli |

## Links

- npm: https://www.npmjs.com/package/bunyan-duckling
- Repository: https://github.com/voxpelli/node-bunyan-duckling
- Homepage: http://github.com/voxpelli/node-bunyan-duckling
- Issues: https://github.com/voxpelli/node-bunyan-duckling/issues
- npm.io page: https://npm.io/package/bunyan-duckling

## Recent versions

- 1.0.2 (latest) — 2016-07-06
- 1.0.0 — 2015-04-01

## README

# Bunyan Duckling

Maps the major [Bunyan](https://github.com/trentm/node-bunyan) logging methods to `console.log()`/`.error()`. Useful for modules that want to be compatible with, but not require, Bunyan logging.

## Installation

```bash
npm install bunyan-duckling --save
```

## Usage

Simple:

```javascript
var logger = require('bunyan-duckling');

logger.error('Warning');      // Uses console.error()
logger.info('Informational'); // Uses console.log()
```

## Supported methods

Has support for all seven [Bunyan log levels](https://github.com/trentm/node-bunyan#levels).

* `.fatal()` – maps to `console.error()`
* `.error()` – maps to `console.error()`
* `.warn()` – maps to `console.log()`
* `.info()` – maps to `console.log()`
* `.debug()` – maps to `console.log()`
* `.trace()` – maps to `console.log()`

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