1 Reply Latest reply on Mar 26, 2014 4:22 PM by jamezp

    Include deployment name in log messages


      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?