title: how java logger see the files where they get called
body: <p>I'm building a logger for school.</p>
  
  <p>I want to have these result in my file log.txt when I call </p>
  
  <pre><code>myLog.log("store that",level.ERROR);
  </code></pre>
  
  <p>log.txt:</p>
  
  <pre><code>"date-hour-&lt;Class&gt;-ERROR-store that"
  </code></pre>
  
  <p>I can have everything I want ( date, hour, ... ) except the <code>&lt;Class&gt;</code>.</p>
  
  <p>For example if I call </p>
  
  <pre><code>myLog.log("store that",level.ERROR);
  </code></pre>
  
  <p>in a class named Cat, I would have something like this in log.txt:</p>
  
  <pre><code>"date-hour-Cat-ERROR-store that"
  </code></pre>
  
  <p>How can I do this ?</p>
  
  <p>Thank you</p>