Skip to content
Snippets Groups Projects
Commit bb302b54 authored by javieryanez's avatar javieryanez Committed by Jairo Llopis
Browse files

Added LOG_LEVEL environment variable to set logging severity level.

parent e46d26a7
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,8 @@ ENV ALLOW_RESTARTS=0 \
SYSTEM=0 \
TASKS=0 \
VERSION=1 \
VOLUMES=0
VOLUMES=0 \
LOG_LEVEL=info
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
# Metadata
......
......@@ -141,6 +141,12 @@ does not need.
- `TASKS`
- `VOLUMES`
## Logging
You can set the logging level or severity level of the messages to be logged with the
environment variable `LOG_LEVEL`. Defaul value is info. Possible values are: debug,
info, notice, warning, err, crit, alert and emerg.
## Supported API versions
- [1.27](https://docs.docker.com/engine/api/v1.27/)
......
global
log stdout format raw daemon
log stdout format raw daemon "${LOG_LEVEL}"
pidfile /run/haproxy.pid
maxconn 4000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment