Generally we Use System. Out console to print our Output, but they are all temporary messages and whenever new program run or when console is closed, our Output messages automatically removed from Console.
It is impossible to Store messages of console in a permanent place. To resolve this problem Log4j was developed.
With the help of Log4j one can store the Output in a file, database, remote server.
Log4j is in the form of jar that can be downloaded from Apache Website (http://www.apache.org/dyn/closer.cgi/logging/log4j/1.2.17/log4j-1.2.17.zip)
Log4j is an Open Source tool given by Apache, for only java projects.
Important feature of log4j is that without doing any changes in Application Binary one can enable logs
With the help Of Components in Log4j, one can Customize their output.
Log4j is quite fast in logging and also flexible for using layouts in different ways.
0 Comment(s)