0.2.7 • Published 5 years ago
easy-syslog v0.2.7
easy-syslog
:boom: ESM Lighty syslog protocol (rfc5424) client. Works with Node.js over UDP (rfc5426) and TCP (rfc6587)
Example
import { syslog } from 'easy-syslog'
const log = await syslog({
appName: 'Awesome App',
host: 'syslog.local',
port: 514,
protocol: 'udp4',
})
log({
message: 'Hi!',
})
log({
message: 'Houston, we have a problem',
severity: 0,
})