title: View Tomcat Application Logfile in Netbeans
body: <p>I'm using Netbeans 7.3 for deploying my WebApplication on a Tomcat. When I run/deploy the application, I can see the the Server Log and the "Apache Tomcat Log" in the Output Window.</p>
  
  <p>But in my application I specified with log4j another Logfile for my application logs only. </p>
  
  <p><strong>How can I see the Log of my Application like the other Log Output directly in Netbeans?</strong></p>
  
  <p><img src="https://i.stack.imgur.com/RN5xy.png" alt="enter image description here"></p>
  
  <p>My log4j has the specification of an additional log - so all warning/error of my classes will be appended there.</p>
  
  <pre><code>###### My Log
  log4j.appender.myLog=org.apache.log4j.DailyRollingFileAppender
  log4j.appender.myLog.File=${catalina.home}/logs/myLog.log
  log4j.appender.myLog.DatePattern='.'yyyy-MM-dd
  log4j.appender.myLog.layout=org.apache.log4j.PatternLayout
  log4j.appender.myLog.layout.ConversionPattern=%d %p %t %c - %m%n
  
  log4j.logger.com.myDomain=WARN, myLog
  </code></pre>