Add log formatting settings (#1926)

Adds a log format setting as ATHENS_LOG_FORMAT that can be either plain or JSON when CloudRuntime is none (the default). Does not break or change any existing behavior.
This commit is contained in:
Matt
2024-03-21 09:07:39 -07:00
committed by GitHub
parent 9f6009b76d
commit 08520bf894
11 changed files with 51 additions and 34 deletions
+5
View File
@@ -78,6 +78,11 @@ ProtocolWorkers = 30
# Env override: ATHENS_LOG_LEVEL
LogLevel = "debug"
# LogFormat determines the format that logs are output in. Defaults to json.
# It is only used when CloudRuntime is set to none. Values can be "plain" or "json".
# Env override: ATHENS_LOG_FORMAT
LogFormat = "json"
# CloudRuntime is the Cloud Provider on which the Proxy/Registry is running.
# Currently available options are "GCP", or "none". Defaults to "none"
# Env override: ATHENS_CLOUD_RUNTIME