Enabling error logging in Kong Gateway
Steps
-
To view error log messages, configure Kong Gateway error logging.
For more information on log levels, see the Kong Gateway Logging Reference documentation.
Example:
For example, in a Docker environment, you can set the environment variable
KONG_PROXY_ERROR_LOG
to/dev/stderr
to send the error log to the container console. -
View the Kong Gateway error log.
Example:
For example, in a Docker deployment, you can use the
docker-compose logs kong --follow
command.