title: Log4j For Each Class in Project
body: <p>I have a project containing classes.</p>
  
  <p>I would like to do logging per class instead of wrapping them up altogether in a single log file. I am using Java.</p>
  
  <p>Like for example I have</p>
  
  <p>foo.bar.class1
  foo.bar.class2</p>
  
  <p>How can I achieve log file per class?</p>
  
  <p>So that I could have a log file named "class1.log" and "class2.log" containing their own respective log data. What should I do in log4j.properties or on classes?</p>
  
  <p>Any help would be appreciated, thanks.</p>