1
0
mirror of https://github.com/Tecnativa/docker-socket-proxy synced 2024-11-27 10:28:18 +00:00

Added LOG_LEVEL environment variable to set logging severity level.

This commit is contained in:
javieryanez 2019-08-22 15:29:29 +02:00 committed by Jairo Llopis
parent e46d26a7c4
commit bb302b5470
3 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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/)

View File

@ -1,5 +1,5 @@
global
log stdout format raw daemon
log stdout format raw daemon "${LOG_LEVEL}"
pidfile /run/haproxy.pid
maxconn 4000