mirror of
https://github.com/Tecnativa/docker-socket-proxy
synced 2024-10-13 03:18:57 +00:00
Added LOG_LEVEL environment variable to set logging severity level.
This commit is contained in:
parent
e46d26a7c4
commit
bb302b5470
@ -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/)
|
||||
|
@ -1,5 +1,5 @@
|
||||
global
|
||||
log stdout format raw daemon
|
||||
log stdout format raw daemon "${LOG_LEVEL}"
|
||||
|
||||
pidfile /run/haproxy.pid
|
||||
maxconn 4000
|
||||
|
Loading…
Reference in New Issue
Block a user