dart_syslog

Creator: coderz1093

Last updated:

0 purchases

dart_syslog Image
dart_syslog Images

Languages

Categories

Add to Cart

Description:

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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.