pub trait Logger: Debug + Send {
// Required methods
fn verbose(&self, log_str: String);
fn info(&self, log_str: String);
fn debug(&self, log_str: String);
fn warn(&self, log_str: String);
fn error(&self, log_str: String);
}
Expand description
See MMKV::set_logger
Logger should be Send
, cause it will be moved into io thread