# loggly-console-logger

> Winston-based logger that outputs to the console and loggly if the loggly input token is set in the nconf object

Latest version **2.0.1** (published 2013-07-03) · BSD license · 0 weekly downloads

## Install

```sh
npm install loggly-console-logger
pnpm add loggly-console-logger
yarn add loggly-console-logger
bun add loggly-console-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.0.1 |
| Published | 2013-07-03 |
| First published | 2013-03-21 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Noah Isaacson |
| Maintainers | clewfirst |
| Keywords | docparse, winston |

## Links

- npm: https://www.npmjs.com/package/loggly-console-logger
- Repository: https://github.com/nisaacson/loggly-console-logger
- Issues: https://github.com/nisaacson/loggly-console-logger/issues
- npm.io page: https://npm.io/package/loggly-console-logger

## Dependencies (2)

- [winston](https://npm.io/package/winston.md) ~0.7.2
- [winston-loggly](https://npm.io/package/winston-loggly.md) ~0.6.0

## 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

- 2.0.1 (latest) — 2013-07-03
- 2.0.0 — 2013-07-03
- 1.0.8 — 2013-06-21
- 1.0.7 — 2013-06-21
- 1.0.6 — 2013-06-20
- 1.0.5 — 2013-03-25
- 1.0.4 — 2013-03-25
- 1.0.3 — 2013-03-21
- 1.0.2 — 2013-03-21
- 1.0.1 — 2013-03-21
- 1.0.0 — 2013-03-21

## README

# Loggly Console Logger

[![Dependency Status](https://david-dm.org/nisaacson/loggly-console-logger.png)](https://david-dm.org/nisaacson/loggly-console-logger)

Winston-based logger that outputs to the console and loggly if the loggly input token is set in the nconf object


# Installation

```bash
npm install -S loggly-console-logger
```

# Usage

To use send your logs to loggly, you must first specify your `inputToken` and `subdomain` in the nconf object.  Only logs with the level `info` and higher will be sent to loggly. Any `debug` level logging statements are only logged to the console


```javascript
var nconf = require('nconf').argv().env().defaults({
  loggly: {
    inputToken: 'foo-loggly-input-token-here',
    subdomain: 'foo'
  }
})

var logger = require('logger')
logger.debug('this will be logged to the console only')
logger.info('this will be logged to the console and submitted to loggly as well')
```

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