title: Writing audit logs using log4j
body: <p>I have an application that needs to write logs of two different types: application log and audit log. Application log is used for debug purpose whereas audit log is to record the operations performed. Both logs will be in different files and each file should have only those logs as mentioned (means audit log file cannot have application log and vice versa).  </p>
  
  <p>How this can be implemented using log4j?<br>
  I know one way to implement this is by defining custom log level in log4j. Is there any other/better way to do?</p>