pub struct BatchingLogClientBuilder { /* private fields */ }Expand description
Builder for BatchingLogClient.
Implementations§
Source§impl BatchingLogClientBuilder
impl BatchingLogClientBuilder
Sourcepub fn batch_options(self, opts: BatchOptions) -> Self
pub fn batch_options(self, opts: BatchOptions) -> Self
Batch options (default BatchOptions::default).
Sourcepub fn resource(self, resource: Attributes) -> Self
pub fn resource(self, resource: Attributes) -> Self
Replaces the resource attributes added to every record.
Sourcepub fn resource_attribute(
self,
key: impl Into<String>,
value: impl Into<AttrValue>,
) -> Self
pub fn resource_attribute( self, key: impl Into<String>, value: impl Into<AttrValue>, ) -> Self
Adds one resource attribute.
Sourcepub fn redaction(self, redaction: Option<RedactionProcessor>) -> Self
pub fn redaction(self, redaction: Option<RedactionProcessor>) -> Self
Redaction applied to every record (default RedactionProcessor::default); None
disables redaction.
Sourcepub fn min_severity(self, severity: Severity) -> Self
pub fn min_severity(self, severity: Severity) -> Self
Default minimum severity for loggers from LogClient::logger (default Info).
Sourcepub fn build(self) -> Result<BatchingLogClient>
pub fn build(self) -> Result<BatchingLogClient>
Starts the client; must be called inside a tokio runtime.
Auto Trait Implementations§
impl !RefUnwindSafe for BatchingLogClientBuilder
impl !UnwindSafe for BatchingLogClientBuilder
impl Forget for BatchingLogClientBuilder
impl Freeze for BatchingLogClientBuilder
impl Move for BatchingLogClientBuilder
impl Send for BatchingLogClientBuilder
impl Sync for BatchingLogClientBuilder
impl Unpin for BatchingLogClientBuilder
impl UnsafeUnpin for BatchingLogClientBuilder
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