I have a number of interacting applications deployed in one WildFly instance. In the server and console logs, I'd like to see the origin of any given log message, e.g. by including the deployment name in each log message, using a suitable formatter pattern. The interleaving of messages is important, separate log files per application would not help in my use case.
Working with logback or log4j directly, I suppose this could be achieved using an MDC and including the corresponding pattern in the log formatter. What's the best way of doing this with JBoss Logging?
Thanks,
Harald
Using MDC would work fine in WildFly as well. Just add %X in the pattern in the position you'd like to see it.
--
James R. Perkins