pub struct LoggingSetupBuilder { /* private fields */ }Expand description
Builder for creating a complete logging setup
Implementations§
Source§impl LoggingSetupBuilder
impl LoggingSetupBuilder
pub fn new() -> Self
pub fn with_processor_chain(self, chain: ProcessorChain) -> Self
pub fn with_transport(self, transport: Arc<dyn TransportPort>) -> Self
pub fn with_level_filter(self, level: LogLevel) -> Self
pub fn with_directives(self, directives: LogDirectives) -> Self
pub fn build(self) -> ObservabilityResult<StandardLogAdapter>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoggingSetupBuilder
impl !RefUnwindSafe for LoggingSetupBuilder
impl Send for LoggingSetupBuilder
impl Sync for LoggingSetupBuilder
impl Unpin for LoggingSetupBuilder
impl UnsafeUnpin for LoggingSetupBuilder
impl !UnwindSafe for LoggingSetupBuilder
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