title: Hibernate show sql is equal to Stdout
body: <p>I declared <code>&lt;property name=&quot;show_sql&quot;&gt;true&lt;/property&gt;</code> in hibernate. I read stdout issues in this <a href="https://stackoverflow.com/questions/8601831/do-not-use-system-out-println-in-server-side-code">link</a>. Stdout will consume more memory. So How <strong>show_sql</strong> functionality will working?. Because of I have seen in server log stdout sql query.</p>
  <pre><code>13:06:53,323 INFO  [stdout] (http-/172.29.250.43:8080-7) Hibernate: select sampledata0_.idsample as idsample4_10_1_, sampledata0_.id as id1_9_1_, sampledata0_.id as id1_9_0_, sampledata0_.idsample as idsample4_9_0_, sampledata0_.sname as sname2_9_0_, sampledata0_.svalue as svalue3_9_0_ from sample_meta_data sampledata0_ where sampledata0_.idsample=?
  13:06:53,324 INFO  [stdout] (http-/172.29.250.43:8080-7) Hibernate: select sampledata0_.idsample as idsample4_10_1_, sampledata0_.id as id1_9_1_, sampledata0_.id as id1_9_0_, sampledata0_.idsample as idsample4_9_0_, sampledata0_.sname as sname2_9_0_, sampledata0_.svalue as svalue3_9_0_ from sample_meta_data sampledata0_ where sampledata0_.idsample=?
  </code></pre>
  <p>Internally hibernate suppose to use <code>System.out.println</code>. Then Will it consume more memory? How <code>format_sql</code> and <code>show_sql</code> working internally?</p>