# bunyan-log

> Logger class based on node-bunyan-logger which defaults most commonly used logger settings.

Latest version **3.0.0** (published 2018-05-27) · MIT license · 0 weekly downloads

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

## Install

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

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2018-05-27 |
| First published | 2015-11-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 34 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | weagle08 |
| Maintainers | weagle08 |
| Keywords | bunyan, logging, logger, cluster-logging |

## Links

- npm: https://www.npmjs.com/package/bunyan-log
- Repository: https://github.com/sameke/bunyan-log
- Homepage: https://github.com/sameke/bunyan-log#readme
- Issues: https://github.com/sameke/bunyan-log/issues
- npm.io page: https://npm.io/package/bunyan-log

## Dependencies (3)

- [bunyan](https://npm.io/package/bunyan.md) ^1.8.12
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [circular-json](https://npm.io/package/circular-json.md) ^0.5.4

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2018-05-27
- 2.0.12 — 2018-05-23
- 2.0.11 — 2018-05-22
- 2.0.10 — 2017-02-24
- 2.0.9 — 2017-02-23
- 2.0.8 — 2017-02-23
- 2.0.7 — 2017-02-23
- 2.0.6 — 2017-01-24
- 2.0.5 — 2017-01-24
- 2.0.4 — 2017-01-04
- 2.0.3 — 2016-12-21
- 2.0.2 — 2016-11-25
- 2.0.1 — 2016-11-19
- 2.0.0 — 2016-11-19
- 1.0.4 — 2016-04-12
- … 4 more at https://npm.io/package/bunyan-log/versions

## README

# bunyan-log

Simple wrapper around bunyan which sets many common defaults.
**REQUIRES ECMAScript6 friendly node version**

##install

$npm install bunyan-log

##usage

```javascript
var Logger = require('bunyan-log');

var log = new Logger({name: 'myLogger'});
log.debug('hi, my name is ben.');
```

**constructor**  
``` var log = new Logger([options])```  
See [node-bunyan](https://github.com/trentm/node-bunyan) for options that can be set.  

* logging to stdout: ```options.useStdOut = true;```
* not logging to file: ```options.useFile = false;```
* allowing logging to new log file on cluster.fork'd process: ```options.isNewProcess = true```
* allow process created with child_process.fork to send to parent: ```options.sendToParent = true```
* default path for logs is [root]/logs directory

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