Trait mmkv::Logger

source ·
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

Required Methods§

source

fn verbose(&self, log_str: String)

source

fn info(&self, log_str: String)

source

fn debug(&self, log_str: String)

source

fn warn(&self, log_str: String)

source

fn error(&self, log_str: String)

Implementors§