`
orange5458
  • 浏览: 347850 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

commons-logging

 
阅读更多

一。简介

commons-logging是Apache下的一个开源项目。

目的是提供一套轻量级的中间层日志接口,将项目与具体的日志框架解耦,从而实现不同日志框架之间的切换。

 

二。两个重要的接口

LogFactory

--用于创建Log实例,有一套内部定义的发现底层日志框架的机制和在配置缺省情况下的默认值

Log

--日志接口抽象,提供了6种日志级别

trace,debug,info,warning,error,fatal

 

三。配置具体的日志框架

配置文件:commons-logging.properties

1)LogFactory的实现类

org.apache.commons.logging.impl.LogFactoryImpl(默认值)

org.apache.commons.logging.LogFactory(配置文件中的属性名)

 

2)Log的实现类

默认发现机制(LogFactoryImpl)实现:

 (1)org.apache.commons.logging.Log(配置文件中的属性名)

 (2)org.apache.commons.logging.log(配置文件中的属性名)

 (3)org.apache.commons.logging.Log(系统属性名)

 (4)org.apache.commons.logging.log(系统属性名)

 (5)org.apache.commons.logging.impl.Log4JLogger

 (6)org.apache.commons.logging.impl.Jdk14Logger

 (7)org.apache.commons.logging.impl.Jdk13LumberjackLogger

 (8)org.apache.commons.logging.impl.SimpleLog

 

四。实现

Log实现类--适配器模式

 

五。相关资料

 http://commons.apache.org/logging/

分享到:
评论

相关推荐

    commons-logging.jar

    commons-logging-1.0-javadoc.jar, commons-logging-1.0.1-javadoc.jar, commons-logging-1.0.1.jar, commons-logging-1.0.2-javadoc.jar, commons-logging-1.0.2.jar, commons-logging-1.0.3-javadoc.jar, commons-...

    commons-logging-1.2-API文档-中英对照版.zip

    赠送jar包:commons-logging-1.2.jar; 赠送原API文档:commons-logging-1.2-javadoc.jar; 赠送源代码:commons-logging-1.2-sources.jar; 包含翻译后的API文档:commons-logging-1.2-javadoc-API文档-中文...

    commons-logging-1.1.3-API文档-中文版.zip

    赠送jar包:commons-logging-1.1.3.jar; 赠送原API文档:commons-logging-1.1.3-javadoc.jar; 赠送源代码:commons-logging-1.1.3-sources.jar; 赠送Maven依赖信息文件:commons-logging-1.1.3.pom; 包含翻译后...

    commons-logging-1.2-API文档-中文版.zip

    赠送jar包:commons-logging-1.2.jar; 赠送原API文档:commons-logging-1.2-javadoc.jar; 赠送源代码:commons-logging-1.2-sources.jar; 包含翻译后的API文档:commons-logging-1.2-javadoc-API文档-中文...

    commons-logging-1.1.1-API文档-中文版.zip

    赠送jar包:commons-logging-1.1.1.jar 赠送原API文档:commons-logging-1.1.1-javadoc.jar 赠送源代码:commons-logging-1.1.1-sources.jar 包含翻译后的API文档:commons-logging-1.1.1-javadoc-API文档-中文...

    spring-framework & commons-logging

    spring-framework & commons-logging spring-framework & commons-logging spring-framework & commons-logging spring-framework & commons-logging spring-framework & commons-logging spring-framework & ...

    commons-logging-1.1.3-API文档-中英对照版 (2).zip

    赠送jar包:commons-logging-1.1.3.jar; 赠送原API文档:commons-logging-1.1.3-javadoc.jar; 赠送源代码:commons-logging-1.1.3-sources.jar; 赠送Maven依赖信息文件:commons-logging-1.1.3.pom; 包含翻译后...

    commons-logging-1.2-sources.jar

    commons-logging-1.2-sources.jar资源

    commons-logging-1.2

    While logging-implementation independence is not as important for applications as it is for libraries, using commons-logging does allow the application to change to a different logging implementation...

    commons-logging-1.1.1

    Commons-loggin的目的是为“所有的Java日志实现”提供一个统一的接口,它自身的日志功能平常弱(只有一个简单的SimpleLog?...另外一个我能想到的“同时使用commons-logging和Log4j”的原因是,简化使用和配置

    commons-codec-1.3.jar,commons-httpclient-3.1.jar,commons-logging-1.1.jar)

    图片上传需要的三个jar包(commons-codec-1.3.jar,commons-httpclient-3.1.jar,commons-logging-1.1.jar)

    commons-logging-1.2-bin.zip下载

    这是commons-logging-1.2-bin.zip,有需要的朋友下载使用

    commons-beanutils.jar+commons-logging.jar

    Apache提供的这个beanutils包极大方便了javabean的 操作。包含了最新的commons-beanutils-1.9.3.jar和api文档,以及其依赖的commons-logging-1.2.jar包

    ant-commons-logging-1.7.0.jar

    标签:ant-commons-logging-1.7.0.jar,ant,commons,logging,1.7.0,jar包下载,依赖包

    commons-modeler-XXX.jar、commons-logging-XXX.jar

    commons-modeler-XXX.jar、commons-logging-XXX.jar 下载

    commons-logging-1.2.jar

    spring所依赖的Apache common logging包。搭建Spring开发环境,必须用到commons-logging.jar。

    commons-beanutils.jar、commons-logging.jar两个包

    beanUtils 方便访问javaBean 附带支持框架 logging jar包,Apache提供的这个beanutils包极大方便了javabean的 操作。包含了最新的commons-beanutils-1.9.3.jar,以及其依赖的commons-logging-1.2.jar包

    commons-logging-1.0.4.jar 免费下载

    java spring 中打印信息的jar包,api发送信息的包,commons-logging-1.0.4-bin.zip,放在lib中,亲测可用。

Global site tag (gtag.js) - Google Analytics