0 purchases
dart syslog
dart_syslog #
A syslog protocol (RFC 3164/RFC 5424) implementation that only supports UDP transport.
Features #
RFC 3164/RFC 5424
UDP transport only
Usage #
The following sample illustrates a program that sends syslog message to the server that runs on 192.168.10.222:5140:
import 'dart:io';
import 'package:syslog/syslog.dart';
void main() async {
final syslog = SyslogUdpClient(
address: InternetAddress.tryParse('192.168.10.222')!,
port: 5140,
tags: SyslogTags(
hostName: 'myhost',
appName: 'hello_syslog',
procId: pid.toString(),
),
);
await syslog.send(facility: Facility.local0, Severity.debug, 'Hello, world!');
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.