Trait syslog_rs::sync::syslog_trait::SyslogExt
source · pub trait SyslogExt {
fn openlog_custom<P: AsRef<Path>>(
ident: Option<&str>,
logstat: LogStat,
facility: LogFacility,
sock_path: P
) -> SyRes<Self>
where
Self: Sized;
fn change_identity<I: AsRef<str>>(&self, ident: I) -> SyRes<()>;
fn make_stream(&self, pri: Priority) -> Box<dyn SyslogStream>;
}Required Methods§
sourcefn openlog_custom<P: AsRef<Path>>(
ident: Option<&str>,
logstat: LogStat,
facility: LogFacility,
sock_path: P
) -> SyRes<Self>where
Self: Sized,
fn openlog_custom<P: AsRef<Path>>(
ident: Option<&str>,
logstat: LogStat,
facility: LogFacility,
sock_path: P
) -> SyRes<Self>where
Self: Sized,
Creates new instance and attempts to connect to provided path
sourcefn make_stream(&self, pri: Priority) -> Box<dyn SyslogStream>
fn make_stream(&self, pri: Priority) -> Box<dyn SyslogStream>
Creates a streamable syslog channel