Writing audit logs using log4j
问题 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). How this can be implemented using log4j? I know one way to implement this is by defining custom log level in log4j. Is there any other