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?
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?