Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slog_stdlog::scope #33

Closed
dpc opened this issue Aug 26, 2016 · 0 comments
Closed

slog_stdlog::scope #33

dpc opened this issue Aug 26, 2016 · 0 comments

Comments

@dpc
Copy link
Collaborator

dpc commented Aug 26, 2016

slog_stdlog::scope(
    |prev_logger| { prev_logger.new(o!("more-data" => 2)) },
    || {
       /// code to be executed
        ....

      //// old logging statement to be used with a logger with `"more-data"`
      info!("check out more data");
});

info!("prev_logger will be used here");
@dpc dpc closed this as completed in 9a5eea3 Aug 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant