Hi all.
I am using the Docker image of Bonita 2021.1 Community Edition and I'm not able to increase the log level.
More in details, I'm trying to set the org.bonitasoft.level to FINEST, as written in the description of the Docker image in the "How to extend this image" section.
I tried with both methods (custom init script and BONITA_SERVER_LOGGING_FILE environment variable), but the minimum log level that I can see remains the INFO one, preventing me from seeing the FINER and FINEST ones.
I noticed that during the startup, the logging.properties file gets modified using this logging.awk file. If I set the "minimum level to log" to FINEST, then I can see a lot of logs, too many of them, and the size of the logs of the Docker container gets soon too big.
How can I set to FINEST only the log level of org.bonitasoft.level using the Bonita Docker image?
Thanks in advance,
Mattia
Hi Mattia,
Did you try the following?
First retrieve the logging.properties file after a standard start
docker run --name bonita -d -p 8080:8080 bonita:2021.1
docker cp bonita:/opt/bonita/BonitaCommunity-2021.1/server/conf/logging.properties /tmp/logging.properties
Then apply the following changes
diff /tmp/logging.properties.orig /tmp/logging.properties
8c8
< java.util.logging.ConsoleHandler.level = INFO
---
> java.util.logging.ConsoleHandler.level = FINEST
36c36
< org.bonitasoft.level = WARNING
---
> org.bonitasoft.level = FINEST
An test it using
docker run --name bonita-finest -v /tmp/logging.properties:/etc/logging.properties -e BONITA_SERVER_LOGGING_FILE=/etc/logging.properties -d -p 8081:8080 bonita:2021.1
docker logs -f bonita-finest
If it's too verbose you may want to select what to set to FINEST under org.bonitasoft like this example with org.bonitasoft.engine.api :
diff /tmp/logging.properties.orig /tmp/logging.properties.2
8c8
< java.util.logging.ConsoleHandler.level = INFO
---
> java.util.logging.ConsoleHandler.level = FINEST
36c36
< org.bonitasoft.level = WARNING
---
> org.bonitasoft.level = INFO
55c55
< #org.bonitasoft.engine.api.level = FINEST
---
> org.bonitasoft.engine.api.level = FINEST
Kind regards,
Jérémy
Thank you Jérémy, I confirm that it works!