rsyslog-winston
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

rsyslog-winston

A pure Javascript rsyslog module for winston with support for RFC3164, RFC5424 based on syslog-pro

By default, rsyslog-winston is use format rfc3164.

Installation

npm install rsyslog-winston

Example Usage

Example of using rsyslog-winston.

import winston from 'winston'
import RSyslog from 'rsyslog-winston'

const logger = winston.createLogger({
  level: 'error',
  transports: [
    new RSyslog({
      host: 'send_to_remote_host',
      port: 'send_to_remote_port'
    })
  ]
})

Options

{
  app: string, // application name
  host?: string, // rsyslog host
  port?: number, // rysylog port
  rfc?: 'RFC5424' | 'RFC3164',
  format?: Format, // winston log format
}

Readme

Keywords

none

Package Sidebar

Install

npm i rsyslog-winston

Weekly Downloads

2

Version

1.1.4

License

MIT

Unpacked Size

17.9 kB

Total Files

8

Last publish

Collaborators

  • accelerator_top