# @recipher/log

> Log helper

Latest version **1.0.3** (published 2016-11-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @recipher/log
pnpm add @recipher/log
yarn add @recipher/log
bun add @recipher/log
```

## 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 | 1.0.3 |
| Published | 2016-11-14 |
| First published | 2016-11-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 0.12.x |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Johnny Hall |
| Maintainers | recipher |

## Links

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

## Dependencies (3)

- [winston](https://npm.io/package/winston.md) ^1.0.1
- [winston-papertrail](https://npm.io/package/winston-papertrail.md) ^1.0.1
- [@recipher/configuration](https://npm.io/package/@recipher/configuration.md) ^1.0.0

## Recent versions

- 1.0.3 (latest) — 2016-11-14

## README

## @recipher/log

Log helper with sane defaults. 

### Usage

Logs to the console by default.

Use configuration to log to file:

```json
{
  "LOGGING": "file"
}
```

Or to Papertrail:

```json
{
  "LOGGING": "papertrail"
, "PAPERTRAIL": {
    "HOST": "..."
  , "PORT": 1234
  }
}
```

To write to the log:

```javascript
var log = require('@recipher/log');

log.info('Information');
log.warn('Warning');
log.error('Error');
log.debug('Debug');
```

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