Reusable log operation
Build a reusable class that is used everywhere, Apache logging project log frame log4j.
control
Destination for log information:
1. It is a console,
2. File (File),
3.GUI component (GUI Component),
4. Set of interface servers (Socket Server),
5.NT Event Logger,
6.unix syslog (syslog daemon) daemon, etc.
Control the output format of each log;
By defining the level of each log information, we can control the generation process of the log in more detail. What is most interesting is that these can
Flexiblely configured by a profile without modifying the code.
In addition, through the log4j other language interface, you can use log4j in C, C ,. Net, PL / SQL programs, its syntax and usage, like the Java program, make multilingual distributed systems to get a uniform log component Module. Moreover, by using various third-party extensions, you can easily integrate log4j to J2EE, Jini or even SNMP applications.
Reference
http://www.cn-java.com/target/news.php?news_id=2590