联盟首页 协同开发 共创软件 开放源码 软件工程 共创论坛 关于联盟
  您的位置 » 开放源码库【成熟 - 项目摘要 首页 | 分类源码 | 提交源码 | 下载统计 | 原创源码 | 成熟源码 | 代码片断
 
 Log4j - 项目摘要
摘要 | 管理 | 论坛
文档 | 软件包

源码库中源码数量为19216
有贡献人员名单:

-= 更多 =-
  • ffdshow
  • jasperreports
  • PoolMan
  • Air Traffic Controller
  • virtualdub-win
  • CppUnit
  • Apache-SSL-Jserv
  • FCK editor
  • Async Professional
  • GLgraph
  • -= 更多 =-

    项目描述:
    Inserting log statements into your code is a low-tech method for debugging it. It may also be the only way because debuggers are not always available or applicable. This is often the case for distributed applications.

    On the other hand, some people argue that log statements pollute source code and decrease legibility. (We believe that the contrary is true). In the Java language where a preprocessor is not available, log statements increase the size of the code and reduce its speed, even when logging is turned off. Given that a reasonably sized application may contain thousands of log statements, speed is of particular importance.

    With log4j it is possible to enable logging at runtime without modifying the application binary. The log4j package is designed so that these statements can remain in shipped code without incurring a heavy performance cost. Logging behavior can be controlled by editing a configuration file, without touching the application binary.

    Logging equips the developer with detailed context for application failures. On the other hand, testing provides quality assurance and confidence in the application. Logging and testing should not be confused. They are complementary. When logging is wisely used, it can prove to be an essential tool.

    将调试日志语句插入到你的代码中是一种低级的调试代码的方法。当不能或不适合使用调试器时,这可能是唯一的一种方法。分布试应用程序经常是这种情况。
    另一方面,一些人认为日志语句会生成源代码,从而降低可读性。(我们认为恰恰相反)。在Java语言中,不能使用预处理器,日志语句增加了代码的长度,降低了代码的运行速度,即使日志语句被关闭时也是这样的。如果大小适当的应用程序可能包含有大量的日志语句,这时速度尤为重要。
    使用log4j 可以在运行时生成日志,但不修改应用程序的二进制代码。log4j 包设计为让这些代码仍旧保留在封装的代码中,但不会产生过重的负荷。可以通过编辑一个配置文件来控制日志行为,而不用修改应用程序的二进制代码。
    日志技术为开发人员提供了有关应用程序失败时详细的环境信息。另一方面,测试也为应用程序提供了质量保证。它们是补充性的。当合理使用日志时,它可以成为一种非常重要的工具。

    来源: http://logging.apache.org/log4j/docs/
    类别:
    发布者: cbd007

    最新发布源码包
    软件包 版本号 日期 本地下载
    1.28  1.3  2004-12-02 下载

    原始下载连接(国外) http://apache.linuxforum.net/dist/jakarta/log4j/source/jakarta-log4j-1.2.8.zip
    http://www.apache.org/dist/logging/log4j/1.3alpha-3/logging-log4j-1.3alpha-3.zip

      » 合 作 伙 伴