title: How can I redirect Spring DEBUG logs to a separate file?
body: <p>So I'm trying to view my application that uses Spring framework logs in Kibana 3.
  When I view the logs, there are tons of Spring's DEBUG logs, which makes it harder and frustrating to manage the application's logs.</p>
  
  <p>I am using log4j2 and found a way to just disable Spring logs using </p>
  
  <pre><code>&lt;Logger name="org.springframework" level="OFF"&gt;&lt;/Logger&gt;
  &lt;Logger name="org.hibernate" level="OFF"&gt;&lt;/Logger&gt;
  &lt;Logger name="org.apache.commons" level="OFF"&gt;&lt;/Logger&gt;
  </code></pre>
  
  <p>in my log4j2 XML file.</p>
  
  <p>What I'm trying to achieve is : </p>
  
  <p>I do not want to just disable the logs, I want to separate Spring's logs from my application's logs, meaning a different file for each of them.</p>
  
  <p>Thanks in advance for the help.</p>