# etlogger-syslog-handler

> ET Logger log handler for syslog

Latest version **1.0.0** (published 2021-01-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install etlogger-syslog-handler
pnpm add etlogger-syslog-handler
yarn add etlogger-syslog-handler
bun add etlogger-syslog-handler
```

## 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 | 1.0.0 |
| Published | 2021-01-18 |
| First published | 2021-01-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tom Seago |
| Maintainers | tseago |
| Keywords | utilities, logging, syslog |

## Links

- npm: https://www.npmjs.com/package/etlogger-syslog-handler
- Repository: https://github.com/eyethereal/node-etlogger-syslog-handler
- Homepage: https://github.com/eyethereal/node-etlogger-syslog-handler#readme
- Issues: https://github.com/eyethereal/node-etlogger-syslog-handler/issues
- npm.io page: https://npm.io/package/etlogger-syslog-handler

## Dependencies (1)

- [modern-syslog](https://npm.io/package/modern-syslog.md) ^1.2.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.0 (latest) — 2021-01-18
- 0.1.0 — 2021-01-17

## README

# ET Logger Syslog Handler

This handler will send logger output to syslog using modern-syslog. That package uses native C bindings to the host syslog library, which is good for performance, but of course you're going to need build tools to install it which may or may not be ideal.

It logs to the local syslog daemon which can then do other things with the message as appropriate and based on it's configuration. So if you're not seeing output, you may want to check that.

## Usage

See the example in `./example.js`


    const Log = require("etlogger"); 
    const SyslogHandler = require("etlogger-syslog-handler");
    
    // The opts object is optional
    const opts = {
        ident: "MyApp", // defaults to process.title which is probably just `node`
        flags: SyslogHandler.flag.LOG_ID || SyslogHandler.flag.LOG_PERROR,  // An or'd set of values
        facility: SyslogHandler.facility.LOG_DAEMON, // defaults to LOG_LOCAL0
    };
    const handler = new SyslogHandler(opts);
    
    Log.addLogHandler(handler);
    
    Log.debug("This is a %s message", "debug");

## Flags and facilities

See <https://github.com/strongloop/modern-syslog> for inherited values.

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