pub struct SyslogLoggingPlugin { /* private fields */ }Expand description
UDP-based syslog client.
Implementations§
Source§impl SyslogLoggingPlugin
impl SyslogLoggingPlugin
Sourcepub fn connect(
target: SocketAddr,
app_name: impl Into<String>,
hostname: impl Into<String>,
min_level: LogLevel,
) -> Result<Self>
pub fn connect( target: SocketAddr, app_name: impl Into<String>, hostname: impl Into<String>, min_level: LogLevel, ) -> Result<Self>
Connects to a syslog collector.
§Errors
io::Error if the UDP socket cannot be bound
(not the connect — UDP is connectionless; we only bind
locally and then send via send_to).
Trait Implementations§
Source§impl LoggingPlugin for SyslogLoggingPlugin
impl LoggingPlugin for SyslogLoggingPlugin
Auto Trait Implementations§
impl !Freeze for SyslogLoggingPlugin
impl RefUnwindSafe for SyslogLoggingPlugin
impl Send for SyslogLoggingPlugin
impl Sync for SyslogLoggingPlugin
impl Unpin for SyslogLoggingPlugin
impl UnsafeUnpin for SyslogLoggingPlugin
impl UnwindSafe for SyslogLoggingPlugin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more