title: Wildfly: printing the log configured inside a war
body: <p>Customer has a wildfly running with a war that contains this log4j.properties inside:</p>
  
  <pre><code>### direct log messages to stdout ###
  log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  log4j.appender.stdout.Target=System.out
  log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  log4j.appender.stdout.layout.ConversionPattern=%d{DATE} %5p %c{1}:%L - %m%n
  
  log4j.rootLogger=info, stdout
  
  log4j.logger.org.hibernate=info
  log4j.logger.org.springframework=error
  log4j.logger.com.ibm.presentation=debug
  </code></pre>
  
  <p>I want to see the logs from the 'com.ibm.presentation' package, but I can't seem to find them anywhere. The comment in the log4j.properties says 'direct log messages to stdout' but the wildlfy is started as a service and there's no stdout that I am aware of.</p>
  
  <p>Searching in the forum, I tried using jboss-cli adding loggers like described here:
  <a href="https://stackoverflow.com/questions/28878736/controlling-stderr-and-stdout-output-in-wildfly">Controlling stderr and stdout output in WildFly</a> but no luck at all.</p>
  
  <p>Is there a way to override this log4j.xml in the war and print the log messages of the classes in the package in the normal server.log of the wildfly?</p>