distribution/registry
Adam Wolfe Gordon 43e502590f 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>
2021-03-01 14:44:56 -07:00
..
api go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
auth go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
client go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
handlers Merge pull request #3174 from adamwg/manifest-delete-by-tag 2021-03-01 17:21:03 +00:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
proxy go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
storage go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go log: Include configured fields in all logs 2021-03-01 14:44:56 -07:00
registry_test.go log: Include configured fields in all logs 2021-03-01 14:44:56 -07:00
root.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00