# allogator

> Easily pipe logs to different services by setting environment variables

Latest version **0.0.3** (published 2015-06-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install allogator
pnpm add allogator
yarn add allogator
bun add allogator
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2015-06-10 |
| First published | 2015-06-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Lapwing Labs |
| Maintainers | bdentino |
| Keywords | logging, log, slack, papertrail, loggly, logentries, winston |

## Links

- npm: https://www.npmjs.com/package/allogator
- Repository: https://github.com/lapwinglabs/allogator
- Issues: https://github.com/lapwinglabs/allogator/issues
- npm.io page: https://npm.io/package/allogator

## Dependencies (5)

- [winston](https://npm.io/package/winston.md) ^0.8.3
- [winston-chains](https://npm.io/package/winston-chains.md) 0.0.1
- [winston-loggly](https://npm.io/package/winston-loggly.md) ^1.0.2
- [winston-logentries](https://npm.io/package/winston-logentries.md) ^1.0.1
- [winston-bishop-slack](https://npm.io/package/winston-bishop-slack.md) ^0.2.1

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

- 0.0.3 (latest) — 2015-06-10
- 0.0.2 — 2015-06-10
- 0.0.1 — 2015-06-10

## README

# allogator
Switch logging services on and off in any project by simply setting environment variables

`npm install`

`var log = require('allogator')('my-log')`

*Returns a winston-chains instance*

#### Set the following environment variables to turn on any of the services below

##### Slack
`SLACK_LOG_WEBHOOK`

`SLACK_LOG_CHANNEL`

(note that the stack trace will be included if an error is passed in meta as `{ error: Error }`)

##### Loggly
`LOGGLY_TOKEN`

`LOGGLY_SUBDOMAIN` (your loggly account subdomain)

`LOGGLY_TAGS` (comma-separated list of tags you want associated with these log messages)

##### LogEntries
`LOGENTRIES_TOKEN`

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