Friday, 16 October 2015

Introduction to Log4j 2

Every enterprise/web/large application requires efficient logging mechanism to debug in application development phase, maintenance phase. In this tutorial series, you are going to learn popular logging framework log4j, it is distributed under Apache License.

Advantages Of Log4j
a.   Logging provides snap shot of the running system.
b.   Once you insert logging mechanism into source code, no human intervention required.
c.    You can save logging information into a file, database (You can write to a network connection also).
d.   You can filter the log message before writing to external environment.
e.   You can format the log messages before writing to external environment.
f.     Log4j 1.x will lose events while reconfiguring. Log4j 2 will not. Log4j2 provides asynchronous logging mechanism, which achieves 10 times higher throughput than log4j1.x.
g.   Custom log levels supported
h.   Support lambda expressions.
i.      Log4j2 provides filter mechanism to process log messages before logger handles
j.     Log4j2 supports automatic reloading of configuration upon modification.



Prevoius                                                 Next                                                 Home

No comments:

Post a Comment