在Spring中配置使用commons-logging的simplelog来输出日志
来源:互联网 发布:java javascript 编辑:程序博客网 时间:2024/05/18 01:33
Spring中使用自带的commons-logging的simplelog来输出日志。
要在spring中使用simplelog输出日志,需要在classpath中放入两个properties:commons-logging.properties和simplelog.properties
commons-logging.properties:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
simplelog.properties:
#Set to true if you want the Log instance name to be included in output messages. Defaults to false.org.apache.commons.logging.simplelog.showlogname=true#Set to true if you want the last component of the name to be included in output messages. Defaults to true.#org.apache.commons.logging.simplelog.showShortLogname=false#Set to true if you want the current date and time to be included in output messages. Default is false.org.apache.commons.logging.simplelog.showdatetime=true#The date and time format to be used in the output messages. The pattern describing the date and time format is the same that is used in java.text.SimpleDateFormat. If the format is not specified or is invalid, the default format is used. The default format is yyyy/MM/dd HH:mm:ss:SSS zzz.#org.apache.commons.logging.simplelog.dateTimeFormat=yyyy/MM/dd HH:mm:ss:SSS zzz#Default logging detail level for all instances of SimpleLog. Must be one of: trace debug info warn error fatal If not specified, defaults to info.#org.apache.commons.logging.simplelog.defaultlog=debug## Configure logging levelsorg.apache.commons.logging.simplelog.log.org.springframework.jdbc=trace
0 0
- 在Spring中配置使用commons-logging的simplelog来输出日志
- 在Spring中配置使用commons-logging的simplelog来输出日志
- 使用commons.logging中的SimpleLog显示调试和日志信息
- org.apache.commons.logging SimpleLog
- 在spring中引入commons-logging.jar包的目的
- spring 中使用 logback打印日志,替换其他日志如log4j,commons-logging
- spring中commons-logging.jar的作用
- spring中commons-logging.jar的作用
- spring中commons-logging.jar的作用
- spring中commons-logging.jar的作用
- 系统日志处理系列 (一)如何使用logging、commons-logging、log4j输出日志
- Spring使用SLF4J代替Commons Logging写日志
- Spring 配置 Apache Commons Logging
- java中commons-logging的使用
- commons-logging日志输出自定义异常
- commons-logging如何调整日志输出级别
- JAVA中使用commons-logging和log4j打印日志
- Commons-Logging的使用
- HDU 1280 前m大的数
- c++字符串与数值之间的转换
- mac os上安装mongoldb
- HOJ 2148&POJ 2680(DP递推,加大数运算)
- inline和define
- 在Spring中配置使用commons-logging的simplelog来输出日志
- 简单的事情复杂做
- 深入理解Android消息处理系统——Looper、Handler、Thread
- 关于FSM(有限状态机)的学习2
- SQL注入与防范
- 手机卫士第七天笔记
- 在web service间传递java bean
- 天声人語 20160306 見えてきた微生物
- 字符串最后一个单词的长度