title: How to write to Tomcat log files
body: <p>What is the easiest way to print out something in a Tomcat Log file.</p>
  
  <p>I was under the impression that System.out.println() would print to one of the log files.</p>
  
  <p>I just want to print out the value of a string, so the simplest solution would be best. If there is no simple/trivial solution I guess I will use Log4J</p>
  
  <p>EDIT: I used Log4J as follows:</p>
  
  <p>As a class variable I declared:</p>
  
  <blockquote>
    <p>static Logger log = Logger.getLogger("myClass");</p>
  </blockquote>
  
  <p>I then placed:</p>
  
  <pre><code> log.warn("Upload directory: "+destDirectory);
  </code></pre>
  
  <p>However now I want to read the value of destDirectory, and cannot see it in any of the Tomcat logs?</p>