title: What is the difference between Java Logger and System.out.println
body: <p>I looked up the api about the logger class(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/logging/Logger.html#info(java.lang.String)">here</a>) and I was looking at the <code>Logger.info</code> method. I was confused when I saw its perimeter as a message displayed as a string <code>public void info(String msg)</code> which is same as <code>System.out.println()</code>. I am wondering what is the different between these two, and why do we use Logger instead of <code>System.out.println</code> when they can print out the same thing.</p>
  
  <p>In Logger. </p>
  
  <p><code>Logger.info("Hello")</code></p>
  
  <p>Output: </p>
  
  <pre><code>[INFO ] 2015-08-07 11:18:46.140 [main] ClassName Hello
  </code></pre>
  
  <p>In <code>System.out.println</code></p>
  
  <p>`System.out.println("Hello")</p>
  
  <p>Output:
    Hello</p>