docker-distribution/context
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
..
context.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
doc.go context, registry/handlers: remove net/context references 2018-01-17 16:01:41 -08:00
http.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
http_test.go Don't panic when a http.ResponseWriter does not implement CloseNotifier 2015-08-06 15:50:54 -07:00
logger.go log: Include configured fields in all logs 2021-03-01 14:44:56 -07:00
trace.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
trace_test.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
util.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
version.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
version_test.go Add WithVersion to context and other cleanup 2015-09-14 17:14:31 -07:00