logging好象是SUN自己开发的比较新的日志包,不知道APACHE这个是不是根据SUN的增加的,log4j是APACHE以前的日志包。

解决方案 »

  1.   

    既然觉得晕,为什么不去jakarta.apache.org去查查看呢?
    Commons-Logging is a wrapper around a variety of logging API implementations. 
    看看说得多清楚~Commons-logging可以理解对现在比较流行的多种日志机制的一个包裹。The Logging package is an ultra-thin bridge between different logging libraries. Commons components may use the Logging API to remove compile-time and run-time dependencies on any particular logging package, and contributors may write Log implementations for the library of their choice.这段话就把使用commons-logging的好处描述得很清晰了~======================================================================+---------+       +-----------------+         +-------------------+
    | Your    |-----> | Commons-Logging |-------> | Concreate Logging |
    | Program |       +-----------------+         +-------------------+
    +---------+                                    log4j..etc
      

  2.   

    赫赫
    楼上正解
    可以说commons-logging是个好冬冬
      

  3.   

    org.apache.commons.logging 是jdk自带的,其性能远不如log4j,log4j是apache下独立的小组的研究成果,它原本希望加入jdk的,但那时jdk正面临发布前夕,便拒绝了他们的要求,所以现在就有这样的两个版本
      

  4.   

    主要是前几天发现配置了Log4j作为log处理时,用LogFactory.getLog("")和log4j.Logger.getLogger("")得到相同的结果,不禁奇怪而已,后来明白了,楼上 xiaohaiz(城里的老土,两眼依然通红!) 说的没错,谢谢大家参与,分给大家。