pub struct Options(/* private fields */);
Expand description
syslog
options.
§Examples
use syslog_tracing::Options;
// Log PID with messages and log to stderr as well as `syslog`.
let opts = Options::LOG_PID | Options::LOG_PERROR;
Implementations§
Source§impl Options
impl Options
Sourcepub const LOG_ODELAY: Self
pub const LOG_ODELAY: Self
Delay open until first syslog() (default).
Sourcepub const LOG_NDELAY: Self
pub const LOG_NDELAY: Self
Don’t delay open.
Sourcepub const LOG_NOWAIT: Self
pub const LOG_NOWAIT: Self
Don’t wait for console forks: DEPRECATED.
Sourcepub const LOG_PERROR: Self
pub const LOG_PERROR: Self
Log to stderr as well.
Trait Implementations§
impl Copy for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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