Struct wick_logger::LoggingOptions
source · #[non_exhaustive]pub struct LoggingOptions {
pub verbose: bool,
pub otlp_endpoint: Option<String>,
pub app_name: String,
pub levels: LogFilters,
}
Expand description
Logging options.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.verbose: bool
Turns on verbose logging.
otlp_endpoint: Option<String>
The endpoint to send jaeger-format traces.
app_name: String
The application doing the logging.
levels: LogFilters
Log filtering options
Implementations§
source§impl LoggingOptions
impl LoggingOptions
sourcepub fn with_level(level: LogLevel) -> Self
pub fn with_level(level: LogLevel) -> Self
Create a new instance with the given log level.
Trait Implementations§
source§impl Clone for LoggingOptions
impl Clone for LoggingOptions
source§fn clone(&self) -> LoggingOptions
fn clone(&self) -> LoggingOptions
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 LoggingOptions
impl Debug for LoggingOptions
Auto Trait Implementations§
impl RefUnwindSafe for LoggingOptions
impl Send for LoggingOptions
impl Sync for LoggingOptions
impl Unpin for LoggingOptions
impl UnwindSafe for LoggingOptions
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