Struct opentelemetry_sdk::logs::LoggerProvider
source · pub struct LoggerProvider { /* private fields */ }
Expand description
Creator for Logger
instances.
Implementations§
Trait Implementations§
source§impl Clone for LoggerProvider
impl Clone for LoggerProvider
source§fn clone(&self) -> LoggerProvider
fn clone(&self) -> LoggerProvider
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 LoggerProvider
impl Debug for LoggerProvider
source§impl LoggerProvider for LoggerProvider
impl LoggerProvider for LoggerProvider
source§fn versioned_logger(
&self,
name: impl Into<Cow<'static, str>>,
version: Option<Cow<'static, str>>,
schema_url: Option<Cow<'static, str>>,
attributes: Option<Vec<KeyValue>>,
) -> Logger
👎Deprecated since 0.23.0: Please use logger_builder() instead
fn versioned_logger( &self, name: impl Into<Cow<'static, str>>, version: Option<Cow<'static, str>>, schema_url: Option<Cow<'static, str>>, attributes: Option<Vec<KeyValue>>, ) -> Logger
Create a new versioned Logger
instance.
source§fn library_logger(&self, library: Arc<InstrumentationLibrary>) -> Self::Logger
fn library_logger(&self, library: Arc<InstrumentationLibrary>) -> Self::Logger
Returns a new versioned logger with the given instrumentation library. Read more
Auto Trait Implementations§
impl Freeze for LoggerProvider
impl !RefUnwindSafe for LoggerProvider
impl Send for LoggerProvider
impl Sync for LoggerProvider
impl Unpin for LoggerProvider
impl !UnwindSafe for LoggerProvider
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)