Struct ckb_logger_service::Logger
source · pub struct Logger { /* private fields */ }
Expand description
The CKB logger which implements log::Log.
When a CKB logger is created, a logging service will be started in a background thread.
Implementations§
source§impl Logger
impl Logger
sourcepub fn update_main_logger(
filter_str: Option<String>,
to_stdout: Option<bool>,
to_file: Option<bool>,
color: Option<bool>,
) -> Result<(), String>
pub fn update_main_logger( filter_str: Option<String>, to_stdout: Option<bool>, to_file: Option<bool>, color: Option<bool>, ) -> Result<(), String>
Updates the main logger.
sourcepub fn check_extra_logger_name(name: &str) -> Result<(), String>
pub fn check_extra_logger_name(name: &str) -> Result<(), String>
Checks if the input extra logger name is valid.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Logger
impl !RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl !UnwindSafe for Logger
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