Struct wick_logger::LoggingOptionsBuilder
source · pub struct LoggingOptionsBuilder { /* private fields */ }
Expand description
Builder for LoggingOptions
.
Implementations§
source§impl LoggingOptionsBuilder
impl LoggingOptionsBuilder
sourcepub fn verbose<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn verbose<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Turns on verbose logging.
sourcepub fn otlp_endpoint<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn otlp_endpoint<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self
The endpoint to send jaeger-format traces.
sourcepub fn app_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn app_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The application doing the logging.
sourcepub fn levels<VALUE: Into<LogFilters>>(&mut self, value: VALUE) -> &mut Self
pub fn levels<VALUE: Into<LogFilters>>(&mut self, value: VALUE) -> &mut Self
Log filtering options
sourcepub fn build(&self) -> Result<LoggingOptions, LoggingOptionsBuilderError>
pub fn build(&self) -> Result<LoggingOptions, LoggingOptionsBuilderError>
Trait Implementations§
source§impl Clone for LoggingOptionsBuilder
impl Clone for LoggingOptionsBuilder
source§fn clone(&self) -> LoggingOptionsBuilder
fn clone(&self) -> LoggingOptionsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LoggingOptionsBuilder
impl Debug for LoggingOptionsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for LoggingOptionsBuilder
impl Send for LoggingOptionsBuilder
impl Sync for LoggingOptionsBuilder
impl Unpin for LoggingOptionsBuilder
impl UnwindSafe for LoggingOptionsBuilder
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request