# rsyslog-cee

> Publishes CEE-Enhanced Logs to Rsyslog with some custom parameters for indexing and searching

Latest version **0.4.0** (published 2021-04-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install rsyslog-cee
pnpm add rsyslog-cee
yarn add rsyslog-cee
bun add rsyslog-cee
```

## 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.4.0 |
| Published | 2021-04-22 |
| First published | 2018-06-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 53.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mark Armendariz |
| Maintainers | enobrev |

## Links

- npm: https://www.npmjs.com/package/rsyslog-cee
- Repository: https://github.com/enobrev/rsyslog-cee
- npm.io page: https://npm.io/package/rsyslog-cee

## Recent versions

- 0.4.0 (latest) — 2021-04-22
- 0.3.0 — 2020-11-09
- 0.2.15 — 2020-05-07
- 0.2.14 — 2020-05-07
- 0.2.13 — 2020-02-12
- 0.2.12 — 2020-02-12
- 0.2.11 — 2019-12-08
- 0.2.10 — 2019-01-24
- 0.2.9 — 2019-01-24
- 0.2.8 — 2019-01-24
- 0.2.7 — 2019-01-24
- 0.2.6 — 2019-01-24
- 0.2.5 — 2019-01-24
- 0.2.4 — 2019-01-24
- 0.2.3 — 2019-01-24
- … 11 more at https://npm.io/package/rsyslog-cee/versions

## README

This is a fork of [winston-rsyslog-cee](https://github.com/enobrev/winston-rsyslog-cee), but it sends directly to syslog instead of using winston.

# Install

`npm install rsyslog-cee`

`yarn add rsyslog-cee`

# Options

```javascript
    // import {Logger} from 'rsyslog-cee'; OR
    const Logger = require('rsyslog-cee').Logger;

    const oLogger = new Logger(
        {
            service: 'Whatever', // The App Name for Syslog
            console: true,       // Output logs to console
            syslog:  true        // Output logs to syslog
        }
    );

    const oTimer = oLogger.startTimer('Test');

    setTimeout(function() {
        oLogger.dt(oTimer);
        oLogger.removeSyslog();
    }, 1000);

    oLogger.d('Debug', {test: 'Debugging'});
    oLogger.w('Warn', {test: 'Warning'});
    oLogger.i('Info', {test: 'Information'});
    oLogger.n('Notice', {test: 'Notification'});
    oLogger.e('Error', {test: 'Error!'});
    oLogger.c('Critical', {test: 'Critical!'});
    oLogger.a('Alert', {test: 'Hey!'});
    oLogger.em('Emergency', {test: 'OMGWTF!!'});
```

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