Enum flexi_logger::writers::SyslogConnector [−][src]
Expand description
Helper struct that connects to the syslog and implements Write.
Is used in SyslogWriter::try_new
.
Example
use flexi_logger::writers::SyslogConnector; let syslog_connector = SyslogConnector::try_tcp("localhost:7777").unwrap();
Variants
Udp(UdpSocket)
Sends log lines to the syslog via UDP.
UDP is fragile and thus discouraged except for local communication.
Sends log lines to the syslog via TCP.
Implementations
Returns a SyslogConnector
which sends the log lines via TCP to the specified address.
Errors
std::io::Error
if opening the stream fails.
Returns a SyslogConnector
which sends log via the fragile UDP protocol from local to server.
Errors
std::io::Error
if opening the stream fails.
Trait Implementations
Write a buffer into this writer, returning how many bytes were written. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
Attempts to write an entire buffer into this writer. Read more
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
Auto Trait Implementations
impl RefUnwindSafe for SyslogConnector
impl Send for SyslogConnector
impl Sync for SyslogConnector
impl Unpin for SyslogConnector
impl UnwindSafe for SyslogConnector