pub struct DaemonLog { /* private fields */ }Expand description
Shared daemon logger (cheap to clone; one sink per process).
Implementations§
Source§impl DaemonLog
impl DaemonLog
pub fn new(destination: LogDestination, verbose: bool) -> Self
Sourcepub fn syslog_at(socket: PathBuf, verbose: bool) -> Self
pub fn syslog_at(socket: PathBuf, verbose: bool) -> Self
Syslog logger bound to a custom socket path (tests and non-standard hosts).
pub fn destination(&self) -> LogDestination
pub fn verbose(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Forget for DaemonLog
impl Freeze for DaemonLog
impl Move for DaemonLog
impl RefUnwindSafe for DaemonLog
impl Send for DaemonLog
impl Sync for DaemonLog
impl Unpin for DaemonLog
impl UnsafeUnpin for DaemonLogwhere
*const ArcInner<Mutex<Sink>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Sink>>>: UnsafeUnpin,
impl UnwindSafe for DaemonLog
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