mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user