Set leg level in Docker Compose file ( On Premises)

0
Dear All,  I have developed an app , which is then dockerized using mendix build back version 4.17.  Well in the Mendix Developement machine performance of app is good , but when I run the app in the docker, Its consuming almost 99% of CPU and whole UI stops responding some time  When I analysed , root cause was it was creating a log file and this is consuming almost so much of memory in the database .    Then I changed my docker composition and it looks like this      still docker is up, I see app still logs hell amount of data to database .  How can I set the log node : MqttConnector to just Error level  ? Similarly for Debug log node as well ?    Thanks in advance       
asked
3 answers
0

Hi Tejaswi,

 

Based on: https://github.com/mendix/docker-mendix-buildpack#configuring-application-log-levels I would say:

Logging_Config=’{"MqttConnector": "ERROR", "Debug": "ERROR"}’

Have you tried that one?

answered
0

Use this instead:

 

environment:
  HEAP_SIZE: 1G
  ...
  LOGGING_CONFIG: '{"MqttConnector": "ERROR", "Debug": "ERROR"}'

Also, you are mixing your environment list. Only use this format:

MY_VAR: 'myvalue'

 

answered
0

Try:

 environment:

 - LOGGING_CONFIG={"Core":"TRACE"}

answered