Configure logging to output to stdout instead of files

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube 6.7.5

  • what are you trying to achieve
    I’m trying to run SonarQube inside a docker container and have it log all messages that would otherwise have been logged to logs/web.log, logs/es.log, logs/ce.log and logs/access.log to stdout.

  • what have you tried so far to achieve this
    I’ve search for relevant settings in and wrapper.conf. In wrapper.conf I added:

However this logback.xml was also not picked up (it made no difference).

Is what I want to achieve at all possible?


You can do it the same way it’s done in the “official” SonarQube image:

Is this also supported by sonar 7.6+?