How to write to Standard Output using BufferedWriter
<p>I am currently writing an application that produces several log files using BufferedWriter.  While debugging, however, I want to write to System.out instead of a file.  I figured I could change from:</p>

<pre><code>log = new BufferedWriter(new FileWriter(tokenizerLog));
</code></pre>

<p>to:</p>

<pre><code>BufferedWriter log = new BufferedWriter(new OutputStreamWriter(System.out));
log.write("Log output\n");
</code></pre>

<p>as opposed to:</p>

<pre><code>System.out.println("log output")
</code></pre>

<p>The new <code>OutputStreamWriter</code> option has not been working though. How do I change just the Object inside the BufferedWriter constructor to redirect from a file to Standard out.  Because I have several log files I will be writing to, using System.out everywhere and changing the output to a file isn't really an option.</p>
