pub struct Logging { /* private fields */ }Expand description
Owns bounded asynchronous delivery. Dropping this handle never joins a
potentially blocked writer. flush is an explicit, bounded best effort.
Implementations§
Source§impl Logging
impl Logging
pub fn with_writer( role: ServiceRole, writer: impl Write + Send + 'static, ) -> Result<Self>
Sourcepub fn stderr(role: ServiceRole) -> Result<Self>
pub fn stderr(role: ServiceRole) -> Result<Self>
Executables alone install this fixed subscriber. Ambient filter settings and arbitrary library log fields are never interpreted as logging policy.
pub fn layer(&self) -> OperationalLayer
pub fn set_provenance(&self, provenance: ConfigurationProvenance)
pub fn flush(&self, timeout: Duration) -> bool
Auto Trait Implementations§
impl Freeze for Logging
impl RefUnwindSafe for Logging
impl Send for Logging
impl Sync for Logging
impl Unpin for Logging
impl UnsafeUnpin for Logging
impl UnwindSafe for Logging
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