pub struct Syslog { /* private fields */ }
Expand description
A rust interface for Syslog, a standard unix system logging service
Implementations§
Source§impl Syslog
impl Syslog
Sourcepub fn udp(host: SocketAddr) -> Syslog
pub fn udp(host: SocketAddr) -> Syslog
Factory for a Syslog appender that writes to remote Syslog daemon listening a SocketAddr
Sourcepub fn localudp() -> Syslog
pub fn localudp() -> Syslog
Same as udp with providing local loopback address with the standard syslog port
Sourcepub fn unix<P: AsRef<Path>>(path: P) -> Syslog
pub fn unix<P: AsRef<Path>>(path: P) -> Syslog
Factory for a Syslog appender that writes to a host-local Syslog daemon listening on a unix socket domain hosted at the given Path
Sourcepub fn facility(self, facility: Facility) -> Syslog
pub fn facility(self, facility: Facility) -> Syslog
Returns a new Syslog appender configured to append with the provided Facility
Sourcepub fn host(self, local: &str) -> Syslog
pub fn host(self, local: &str) -> Syslog
Returns a new Syslog appender configured to append with the provided host addr
Sourcepub fn app(self, app: &str) -> Syslog
pub fn app(self, app: &str) -> Syslog
Returns a new Syslog appender, configured to append with the provided app-name
Sourcepub fn pid(self, pid: &str) -> Syslog
pub fn pid(self, pid: &str) -> Syslog
Returns a new Syslog appender configured to append with the provided p(rocess)id
Auto Trait Implementations§
impl Freeze for Syslog
impl !RefUnwindSafe for Syslog
impl !Send for Syslog
impl !Sync for Syslog
impl Unpin for Syslog
impl !UnwindSafe for Syslog
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