mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:12:02 +00:00
doc: mention json_gcp format for logs (#54793)
Mentions the availability of `SRC_LOG_FORMAT=json_gcp` in the admin/observability/logging page. ## Test plan <!-- All pull requests REQUIRE a test plan: https://docs.sourcegraph.com/dev/background-information/testing_principles --> CI.
This commit is contained in:
parent
38739820ac
commit
2dfade9a5f
@ -23,6 +23,7 @@ A Sourcegraph service's log output format is configured via the environment vari
|
||||
* `condensed`: Optimized for human readability.
|
||||
* `json`: Machine-readable JSON format.
|
||||
* For certain services and log entries, Sourcegraph exports a [OpenTelemetry-compliant log data model](#opentelemetry).
|
||||
* `json_gcp`: Machine-readable JSON format, tailored to [GCP cloud-logging expected structure.](https://cloud.google.com/logging/docs/structured-logging#special-payload-fields)
|
||||
* `logfmt`: The [logfmt](https://github.com/kr/logfmt) format.
|
||||
* Note that `logfmt` is no longer supported with [Sourcegraph's new internal logging standards](../../dev/how-to/add_logging.md) - if you need structured logs, we recommend using `json` instead. If set to `logfmt`, log output from new loggers will be in `condensed` format.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user