title: How to replace the usage of System.out or System.err by a logger?
body: <p>I have a simple <code>if</code> condition in which I use <code>System.out.println</code>.
  I would like to know how can I modify the code in order to replace this usage of a <code>system.out</code> by a logger ?</p>
  
  <pre><code>if(myVar.getDate().equals(20141127) &amp;&amp; myVar.getNumber().equals(1)) {
                  System.out.println("");
  }
  </code></pre>
  
  <p>Any suggestions ?</p>
  
  <p>Thanks</p>