Skip to content

A syslog protocol (RFC 3164/RFC 5424) implementation that only supports UDP transport.

License

Notifications You must be signed in to change notification settings

espresso3389/dart_syslog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dart_syslog

A syslog protocol (RFC 3164/RFC 5424) implementation that only supports UDP transport.

Features

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!');
}

About

A syslog protocol (RFC 3164/RFC 5424) implementation that only supports UDP transport.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages