This is a potential crate that would simplify the use of the example-lib pattern for slog.
The motivation is the same as that of the example-lib:
a library using slog
for its logging would like to accept a parent logger if the crate pulling it in is using slog
,
or fall back to interfacing with log
's static logger if not.
At any entry point to your library's interface, you would retrieve the Logger
from your lazy slog.
After that point, you would pass it around and create child loggers like normal.