mirror of
https://github.com/fluencelabs/docker-socket-proxy
synced 2025-04-24 17:02:16 +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 \
|
SYSTEM=0 \
|
||||||
TASKS=0 \
|
TASKS=0 \
|
||||||
VERSION=1 \
|
VERSION=1 \
|
||||||
VOLUMES=0
|
VOLUMES=0 \
|
||||||
|
LOG_LEVEL=info
|
||||||
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
|
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
|
||||||
|
|
||||||
# Metadata
|
# Metadata
|
||||||
|
@ -141,6 +141,12 @@ does not need.
|
|||||||
- `TASKS`
|
- `TASKS`
|
||||||
- `VOLUMES`
|
- `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
|
## Supported API versions
|
||||||
|
|
||||||
- [1.27](https://docs.docker.com/engine/api/v1.27/)
|
- [1.27](https://docs.docker.com/engine/api/v1.27/)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
global
|
global
|
||||||
log stdout format raw daemon
|
log stdout format raw daemon "${LOG_LEVEL}"
|
||||||
|
|
||||||
pidfile /run/haproxy.pid
|
pidfile /run/haproxy.pid
|
||||||
maxconn 4000
|
maxconn 4000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user