Advantages of Log4j
- Ability to do setting in configuration file without recompiling.
- Ability to set the way log is written in log file
- Ability to filter log
- Ability to write your information in various resources.
- It provides you to rotate your log file based on timestamp and size
Disadvantages of Log4j
Every logging framework has its drawback which includes slowness of your application.If logging is not taken care properly then it may slow down your application performance.