Modifying logging in the Docker image

Currently deployed an XTDB node using the juxt/xtdb-standalone-rocksdb docker image. It is working great, yet the logging inside the container is at DEBUG which is generating a massive amount of noise. Anyone know how to change this log level for the node running in the docker container? (The docs talk about how to change in the REPL, but not clear how to do this for the node running via docker)
– Greg Reichow, via Clojurians Slack

Hey! This is a good question, the released juxt/xtdb-standalone-rocksdb image is really just a sample/example. You can configure debug logging and more by updating the Dockerfile within the builder scripts, to create your own containers, as per https://docs.xtdb.com/administration/building/#_building_a_docker_container

To change the DEBUG logging level specifically, you will want to create a LOGBACK.xml within a new resources directory, in turn within the docker builder config directory. The Dockerfile already looks for a file (which doesn’t exist by default). You can use something like this:

<configuration>
  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <encoder>
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>
  <root level="INFO">
    <appender-ref ref="STDOUT" />
  </root>
  <logger name="xtdb" level="INFO" />
</configuration>