# ghost-logger

> A ghost logger wrapper

Latest version **2.2.0** (published 2017-10-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install ghost-logger
pnpm add ghost-logger
yarn add ghost-logger
bun add ghost-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 | 2.2.0 |
| Published | 2017-10-31 |
| First published | 2017-01-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ghost Creative |
| Maintainers | jrtate13, njgerner |

## Links

- npm: https://www.npmjs.com/package/ghost-logger
- npm.io page: https://npm.io/package/ghost-logger

## Dependencies (6)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [le_node](https://npm.io/package/le_node.md) ^1.7.0
- [winston](https://npm.io/package/winston.md) ^2.3.1
- [winston-loggly](https://npm.io/package/winston-loggly.md) ^1.3.1
- [newrelic-winston](https://npm.io/package/newrelic-winston.md) 0.0.1
- [omit-deep-lodash](https://npm.io/package/omit-deep-lodash.md) ^1.0.0

## Recent versions

- 2.2.0 (latest) — 2017-10-31
- 2.1.4 — 2017-06-16
- 2.0.4 — 2017-01-29
- 2.0.3 — 2017-01-27
- 2.0.2 — 2017-01-26
- 2.0.0 — 2017-01-26
- 1.2.0 — 2017-01-12
- 1.1.1 — 2017-01-12
- 1.1.0 — 2017-01-12
- 1.0.0 — 2017-01-11

## README

# Ghost Logger

## Installation

`npm i ghost-logger --save`

## Overview

This module is a generic logger for winston console, logentries, loggly, and new relic. Provides a simple `console.LEVEL` like interface to log in your app with. 

Configuration information can be found below.

# Logger

```js
const GhostLogger = require('ghost-logger');
const logger = new GhostLogger(config);

logger.info("it's lit", { data: myData });
```

# Config

* **`blacklist`** [ARRAY] Blacklisted Attributes to remove from logs

* **`console`**:
 
* **`loggly`**: 

* **`logentries`**: 
  * **`enabled`** [BOOLEAN] will only log if set to true
  * **`token`** [STRING] your logentries api token
  * **`console`** [BOOLEAN] if set to true, will also log to the console
  
* **`newrelic`**: 

## Example config file

```json
{
  "enabled": true,
  "logentries": {
    "enabled": true,
    "token": "-- YOUR LOGENTRIES TOKEN --",
    "console": true
  },
  "blacklist": ["password","credit_card"]
}
```

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