Skip to content

UDP syslog example #76

@khumps

Description

@khumps

I am currently trying to use the syslog crate to send messages to a remote syslog server over UDP.

My current instantiation is: syslog::udp(Formatter3164::default(), UnixStream::connect("/dev/log")?, (syslog_ip,514 as u16)); but this is failing because apparently local and server need to be the same type?

Is there any example code that could be provided on how one uses this to connect to a remote syslog server?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions