byjg / docker-easy-haproxy

Discover services and create dynamically the haproxy.cfg based on the labels defined in docker containers or from a simple static Yaml
MIT License
55 stars 12 forks source link

Add a way to configure log-level #20

Closed josegonzalez closed 1 year ago

josegonzalez commented 2 years ago

It would be great to somehow be able to configure the log-level of haproxy, as well as where app request logs go (assuming we can write them to a file per backend or something).

byjg commented 2 years ago

The output log is to stdout, which means docker will handle the logs. That is a preferable option to allow us send the logs to a centralized log repo. Saving to a file will require log rotation, etc.

Let me check the configurable log level.

byjg commented 2 years ago

This is been done in the Kubernetes branch

josegonzalez commented 1 year ago

This can be closed, seems also implemented for docker deploys via the EASYHAPROXY_LOG_LEVEL env var.