# node-logmatic

> Logmatic TCP client

Latest version **1.0.1** (published 2015-12-21) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install node-logmatic
pnpm add node-logmatic
yarn add node-logmatic
bun add node-logmatic
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-12-21 |
| First published | 2015-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Julien Caré |
| Maintainers | jcare44 |
| Keywords | logmatic |

## Links

- npm: https://www.npmjs.com/package/node-logmatic
- Repository: https://github.com/jcare44/node-logmatic
- Issues: https://github.com/jcare44/node-logmatic/issues
- npm.io page: https://npm.io/package/node-logmatic

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^3.10.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

- 1.0.1 (latest) — 2015-12-21

## README

# node-logmatic

[Logmatic](http://logmatic.io/) TCP (over TLS) client

```
npm i -S node-logmatic
```

## Config

You need to pass down a config objects to node-logmatic for him to work.
It's defaults are as follow

```javascript
{
  token: undefined, // Required : your Logmatic token
  tcp: {
    host: 'api.logmatic.io',
    port: 10515
  },
  retryTimeout: 5000, // when failling to reconnect, this timeout if used for each retry
  defaultProps: {}, // add a default value to your log messages (like appname or hostname)
  logger: { //Define the logging functions used
    debug: _.noop,
    info: console.log.bind(console),
    warn: console.warn.bind(console),
    error: console.error.bind(console)
  }
}
```
Notes:
- There is only one mandatory field for you to define : **your logmatic token**
- The `tcp` object is passed to node [tls.connect](https://nodejs.org/api/tls.html#tls_tls_connect_options_callback).

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