spring中commons-logging.jar的作用
来源:互联网 发布:vr 知乎 编辑:程序博客网 时间:2024/05/18 03:50
原文链接:http://blog.csdn.net/zhll3377/article/details/7825361
commons-logging.jar包是使用spring的必备包。(位置在spring-framework-2.5.6.SEC01\lib \jakarta-commons)用来记录程序运行时的活动的日志记录。
你可以可以通过配置在classpath根目录下log4j.properties来配置Log4j。下面log4j配置文件定义了一个日志输出器 (log appender)叫做stdout,可以用来输出日志信息到控制台上。想了解更多的Log4J的信息。请参考Log4J
### direct log messages to stdout ###
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=
%d{yyyy-MM-dd HH:mm:ss} %5p %c{1}:%L - %m%n
### set root logger level ###
log4j.rootLogger=error, stdout
### set application logger level ###
log4j.logger.com.apress.springrecipes.calculator=info
Log4J支持根据紧急度从高到低分为6个日志等级-fatal, error, warn, info, debug, 和trace。在上面的配置文件中,程序的根日志级别是error,这就意味着只有error和fatal级别的日志才会默认输出。但是对于 com.apress.springrecipes.calculator包和它的子包,只要日志级别高于info才会输出。
- spring中commons-logging.jar的作用
- spring中commons-logging.jar的作用
- spring中commons-logging.jar的作用
- spring中commons-logging.jar的作用
- commons-logging.jar作用
- 在spring中引入commons-logging.jar包的目的
- spring 4.3.5导入commons-logging的jar包后报NoClassDefFoundError
- Spring 中 commons-logging 包
- OSGI中启动spring dm加载的commons-logging问题
- 关于 log4j.jar 和 commons-logging.jar 的一些记录
- commons-logging.jar 和 log4j.jar 的关系
- commons-logging.jar 和 log4j.jar 的关系
- java中commons-logging的使用
- spring中各个jar包的作用
- Spring中各个jar包的作用
- Spring中各个jar包的作用
- Spring中常用jar的作用
- spring中每个jar的作用
- 黑马程序员_泛型
- HTTP返回值含义
- H.264 授权费用
- 链表排序 感悟及源码
- K-Means聚类算法详解
- spring中commons-logging.jar的作用
- source xxx.sh脚本 与 ./xxx.sh脚本的区别
- .NET学习
- HDU1999 不可摸数 【数论】
- CvMat操作
- mfc的类型转换
- 最小生成树之 Kruskal
- ORACLE 单行函数和分组统计总结Top-N
- 学会jQuery 不用买书