Struct slog_example_lib::MyLib[][src]

pub struct MyLib { /* fields omitted */ }

MyLib main struct

Methods

impl MyLib
[src]

Initialize MyLib, possibly providing custom logger

logger = None, will make MyLib log to the slog-stdlog drain. This make the library effectively work the same as it was just using log instead of slog.

Into trick allows passing Logger directly, without the Some part. See http://xion.io/post/code/rust-optional-args.html

Do something

Auto Trait Implementations

impl Send for MyLib

impl Sync for MyLib