Hi Benny, Log4j is a brilliant logging API available both on Java and .net framework. It is Reliable, Fast and Flexible logging framework written in Java. Some of the advantages of Log4j are:
-
Good logging infrastructure without putting in any efforts.
-
Ability to categorize logs at different levels (Trace, Debug, Info, Warn, Error and Fatal).
-
Direct logs to different outputs. For e.g. to a file, Console or a Database.
-
Lets you define the format of output logs.
-
Write Asynchronous logs which helps to increase the performance of the application.
-
Loggers in Log4j follow a class hierarchy which may come handy to your applications.