Struct slog_example_lib::MyLib
[−]
[src]
pub struct MyLib { /* fields omitted */ }
MyLib main struct
Methods
impl MyLib
[src]
fn init(logger: Option<Logger>) -> Self
Initialize MyLib
, possibly providing custom logger
logger = None
, will make MyLib
log to the standard log
crate.
fn do_the_thing(&self)
Do something