Registry: implement extended logging configuration
Summary
Spawned from this comment
log:
level: debug # REGISTRY_LOG_LEVEL=debug
formatter: json # REGISTRY_LOG_FORMATTER=json
output: stderr # REGISTRY_LOG_OUTPUT=stderr
accesslog:
formatter: json # REGISTRY_LOG_ACCESSLOG_FORMATTER=json
These configurations can also be set using environment variables (which take precedence over any configuration file).
Current behavior
# Configure the logging mechanism for the Container Registry as desired
# See https://docs.docker.com/registry/configuration/#log
log:
level: warn
fields:
service: registry
Expected behavior
log:
level: warn # REGISTRY_LOG_LEVEL=debug
formatter: json # REGISTRY_LOG_FORMATTER=json
output: stderr # REGISTRY_LOG_OUTPUT=stderr
accesslog:
formatter: json # REGISTRY_LOG_ACCESSLOG_FORMATTER=json