npm.io
2.2.1 • Published 5d ago

@logtape/syslog

Licence
MIT
Version
2.2.1
Deps
0
Size
84 kB
Vulns
0
Weekly
1.8K

LogTape syslog sink

JSR npm

Syslog sink for LogTape. This package provides a syslog sink that sends log messages to a syslog server following the RFC 5424 specification.

Features

  • RFC 5424 compliant: Follows the official syslog protocol specification
  • Multiple transports: Supports both UDP and TCP protocols
  • Cross-runtime: Works on Deno, Node.js, and Bun
  • Non-blocking: Asynchronous message sending with proper cleanup
  • Configurable: Extensive configuration options for facility, hostname, etc.
  • Structured logging: Optional structured data support
  • Zero dependencies: No external dependencies

Installation

This package is available on JSR and npm. You can install it for various JavaScript runtimes and package managers:

deno add jsr:@logtape/syslog  # for Deno
npm  add     @logtape/syslog  # for npm
pnpm add     @logtape/syslog  # for pnpm
yarn add     @logtape/syslog  # for Yarn
bun  add     @logtape/syslog  # for Bun

Docs

The docs of this package is available at https://logtape.org/sinks/syslog. For the API references, see https://jsr.io/@logtape/syslog.

Keywords