# amqplog

> A logger through amqp

Latest version **0.0.5** (published 2016-03-19) · Apache 2.0 license · 0 weekly downloads

## Install

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

## 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.5 |
| Published | 2016-03-19 |
| First published | 2016-03-19 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Steve Grosbois |
| Maintainers | steve.grosbois |
| Keywords | amqp, log |

## Links

- npm: https://www.npmjs.com/package/amqplog
- Repository: https://github.com/kwiky/amqplog-node
- Homepage: https://github.com/kwiky/amqplog-node#readme
- Issues: https://github.com/kwiky/amqplog-node/issues
- npm.io page: https://npm.io/package/amqplog

## Dependencies (2)

- [moment](https://npm.io/package/moment.md) ^2.12.0
- [amqplib](https://npm.io/package/amqplib.md) ^0.4.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.5 (latest) — 2016-03-19
- 0.0.4 — 2016-03-19
- 0.0.3 — 2016-03-19
- 0.0.2 — 2016-03-19
- 0.0.1 — 2016-03-19

## README

# amqplog
A logger through amqp.

Each log call generates an amqp message.

## Usage

```javascript
var options = {
  host: 'locahost'
};

var logger = require('amqplog').connect(options);

logger.i('this is an info message');
logger.d('this is a debug message');
logger.w('this is a warn message');
logger.e('this is an error message');
```


### Available Options
All options are optional:

* `host` {String} Hostname. Default: `localhost`.
* `port` {Number} Port. Default: `5672`.
* `user` {String} Username. Default: none.
* `pass` {String} Password. Default: none.
* `queue` {String} Queue name. Default: `logs`.
* retryDelay {Number} Delay in seconds before retry to connect to the server. Default: `5`.
* `vhost` {String} Vhost. Default: none.

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