一。简介
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-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-...
赠送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文档-中文...
赠送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; 包含翻译后...
赠送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文档-中文...
赠送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 & ...
赠送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资源
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-loggin的目的是为“所有的Java日志实现”提供一个统一的接口,它自身的日志功能平常弱(只有一个简单的SimpleLog?...另外一个我能想到的“同时使用commons-logging和Log4j”的原因是,简化使用和配置
图片上传需要的三个jar包(commons-codec-1.3.jar,commons-httpclient-3.1.jar,commons-logging-1.1.jar)
这是commons-logging-1.2-bin.zip,有需要的朋友下载使用
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包下载,依赖包
commons-modeler-XXX.jar、commons-logging-XXX.jar 下载
spring所依赖的Apache common logging包。搭建Spring开发环境,必须用到commons-logging.jar。
beanUtils 方便访问javaBean 附带支持框架 logging jar包,Apache提供的这个beanutils包极大方便了javabean的 操作。包含了最新的commons-beanutils-1.9.3.jar,以及其依赖的commons-logging-1.2.jar包
java spring 中打印信息的jar包,api发送信息的包,commons-logging-1.0.4-bin.zip,放在lib中,亲测可用。