title: cannot configure log4j behaviour while coding in Anypoint studio 7
body: <p>I am having difficulty trying to configure console log behaviour in Anypoint studio.</p>
  
  <p>I have tried configuring the PatternLayout in all the log files I can find</p>
  
  <ol>
  <li>log4j2.xml in main resources</li>
  <li>log4j2-test.xml in test resources</li>
  <li>log4j2.xml in mule_home &lt;== this get overwritten everytime I restart Anypointstudio</li>
  <li>log4j2.properties, this file has line <code>log4j.appender.console.layout=org.apache.log4j.PatternLayout</code></li>
  </ol>
  
  <p><strong>but none of them takes effect</strong></p>
  
  <p>I am not sure which precedents which</p>
  
  <p>default PatternLayout <code>&lt;PatternLayout pattern="%-5p %d [%t] %c: %m%n"/&gt;</code></p>
  
  <p>this produces long and lengthy logs such as <code>INFO  2019-09-19 16:00:03,520 [[MuleRuntime].cpuLight.10: [b2b-fabric-supplier-po-generate-api].supplier_LookupSupplierGroup_Flow.CPU_LITE @45e00f0d] [event: 7c7e6490-dab3-11e9-aabc-6c4b9035d35b] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: enqueuePOResult before add: []</code> which causes great trouble reading</p>
  
  <p>basically I only have to read what is after the %t thread, the %m%n message</p>
  
  <p>Would want to know what I need to do to do this configuration</p>
  
  <p><strong>Edit: I am not having problem with the patternlayout syntax, I am having problem that whereever I edit the patternlayout, it takes no effect.</strong></p>
  
  <p>I don't think many programmers want to work with log displayed as such
  <a href="https://i.stack.imgur.com/TXrWI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TXrWI.png" alt="log messages too long"></a></p>