pub struct LogService { /* private fields */ }Implementations§
Source§impl LogService
impl LogService
pub fn new(logger: Arc<dyn ILogger>) -> Self
pub fn logger(&self) -> Arc<dyn ILogger>
pub fn set_level(&self, level: LogLevel)
pub fn level(&self) -> LogLevel
pub fn mute_module(&self, module: &str)
pub fn unmute_module(&self, module: &str)
pub fn is_muted(&self, module: &str) -> bool
pub fn trace(&self, module: &str, message: &str)
pub fn debug(&self, module: &str, message: &str)
pub fn info(&self, module: &str, message: &str)
pub fn warn(&self, module: &str, message: &str)
pub fn error(&self, module: &str, message: &str)
Trait Implementations§
Source§impl Clone for LogService
impl Clone for LogService
Source§fn clone(&self) -> LogService
fn clone(&self) -> LogService
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for LogService
impl !RefUnwindSafe for LogService
impl Send for LogService
impl Sync for LogService
impl Unpin for LogService
impl UnsafeUnpin for LogService
impl !UnwindSafe for LogService
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