pub struct DefaultModuleLogger { /* private fields */ }Expand description
Default module logger implementation with host callback support
Implementations§
Source§impl DefaultModuleLogger
impl DefaultModuleLogger
Sourcepub fn set_module_name(&mut self, name: &str)
pub fn set_module_name(&mut self, name: &str)
Set module name
Sourcepub fn module_name(&self) -> &str
pub fn module_name(&self) -> &str
Get module name
Sourcepub fn set_host_callbacks(
&mut self,
error_fn: HostLogErrorFn,
warn_fn: HostLogWarnFn,
info_fn: HostLogInfoFn,
debug_fn: HostLogDebugFn,
trace_fn: HostLogTraceFn,
)
pub fn set_host_callbacks( &mut self, error_fn: HostLogErrorFn, warn_fn: HostLogWarnFn, info_fn: HostLogInfoFn, debug_fn: HostLogDebugFn, trace_fn: HostLogTraceFn, )
Set host logging callbacks
Sourcepub fn global() -> *mut DefaultModuleLogger
pub fn global() -> *mut DefaultModuleLogger
Get static reference to global logger instance
Trait Implementations§
Source§impl Default for DefaultModuleLogger
impl Default for DefaultModuleLogger
Source§impl ModuleLogger for DefaultModuleLogger
impl ModuleLogger for DefaultModuleLogger
Auto Trait Implementations§
impl Freeze for DefaultModuleLogger
impl RefUnwindSafe for DefaultModuleLogger
impl Send for DefaultModuleLogger
impl Sync for DefaultModuleLogger
impl Unpin for DefaultModuleLogger
impl UnsafeUnpin for DefaultModuleLogger
impl UnwindSafe for DefaultModuleLogger
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more