bq. For some reason the stdout output by XWiki are not caught by Tomcat and thus don't appear on the catalina.out file
The explanation that I got today for this is that this is somewhat the standard of containers (having logs on the output of the container and not _in_ the container). It's still not clear to me whether it's not possible to have them in both places (I don't see why it should not be possible), nor if we really made a conscious choice for not having these logs available in the container itself when this packaging was implemented.
The problem with having the logs only in the console where you started docker (which is equivalent to having the logs only outside the container and never inside) is that they cannot be read from within XWiki.
This is quite limiting for the diagnostics and information that XWiki can get about itself.
For example, the "show logs" tool of the admin tools extension doesn't work in such an environment and is not possible to implement, and it's awfully useful.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.