Added / amended env vars in docs example for Google Cloud Logging (#11336)

* Added missing data field to sessions yaml

* rebased sessions.yaml

* Added complete GCP logging env vars to example

* Revert "Added complete GCP logging env vars to example"

This reverts commit eb9f95556b.

* Added correct env vars for GCP cloud logging
This commit is contained in:
keesvanbemmel
2022-02-03 23:55:08 +01:00
committed by GitHub
parent 2d0c23d3c2
commit cf5cebef33

View File

@@ -164,13 +164,25 @@ ADMIN_PASSWORD="localpassword"
KEY="secretkey"
SECRET="secret"
####################################################################################################
## Google Cloud Logging
LOG_STYLE="raw"
LOGGER_LEVELS="trace:DEBUG,debug:DEBUG,info:INFO,warn:WARNING,error:ERROR,fatal:CRITICAL"
LOGGER_MESSAGE_KEY="message"
####################################################################################################
## With this setting you can set the level at which requests are logged
LOGGER_HTTP_USE_LEVEL="debug"
```
Notes:
- the value of `connectionName` from step 11 should be prefixed with `/cloudsql/` as the value of `DB_HOST`
- `LOGGER_LEVELS` is optional, but makes Directus logs show up with correct level in Google Cloud Logging.
- Google Cloud Logging variables are optional, but they make Directus logs show up with correct level in Google Cloud
Logging.
13. Build your container Run these commands.