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

log: Include configured fields in all logs #3170

Closed

Commits on May 27, 2020

  1. log: Include configured fields in all logs

    It's possible to configure log fields in the configuration file, and we would
    like these fields to be included in all logs. Previously these fields were
    included only in logs produced using the main routine's context, meaning that
    any logs from a request handler were missing the fields since those use a
    context based on the HTTP request's context.
    
    Add a configurable default logger to the `context` package, and set it when
    configuring logging at startup time.
    
    Signed-off-by: Adam Wolfe Gordon <awg@digitalocean.com>
    adamwg committed May 27, 2020
    Configuration menu
    Copy the full SHA
    6bd85e8 View commit details
    Browse the repository at this point in the history