HttpClient系统日志配置
来源:互联网 发布:数控车床手工编程入门 编辑:程序博客网 时间:2024/05/17 01:58
详细介绍在:http://hc.apache.org/httpclient-3.x/logging.html
一般使用context logging基本够用,context logging解释原文如下:
context logging
Context logging contains information about the internal operation of HttpClient as it performs HTTP requests. Each class has its own log named according to the class's fully qualified name. For example the class HttpClient has a log named org.apache.commons.httpclient.HttpClient. Since all classes follow this convention it is possible to configure context logging for all classes using the single log named org.apache.commons.httpclient.
Example
Commons Logging comes with a basic logger called SimpleLog. This logger writes all logged messages to System.err. The following examples show how to configure Commons Logging via system properties to use SimpleLog.
配置代码如下:
System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog");System.setProperty("org.apache.commons.logging.simplelog.showdatetime", "true");System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient", "debug");// "stdout"为标准输出格式,"debug"为调试模式
- HttpClient系统日志配置
- Linux配置系统日志
- 系统日志Logrotate配置
- 系统日志,配置IP
- 读取系统日志安全日志审核配置
- 读取系统日志安全日志审核配置
- log4j配置日志系统成功
- tomcat 系统访问日志配置
- 配置Tomcat的日志系统
- log4j配置webapp日志系统
- 配置Tomcat的日志系统
- Webx日志系统的配置
- Java日志系统-logback配置
- Tomcat日志系统详细配置
- Webx3日志系统的配置
- log4j日志系统的配置
- Linux系统日志配置实验
- 系统日志W32Time错误-NtpClient 配置
- 关于“(”:“::”右边的非法标记
- php系统如何实现动态页面静态化
- SQL SQLite 筛选(查询)出 重复数据
- 不怕入错行,就怕跟错人!
- CodeForces 711C.Coloring Trees【DP】
- HttpClient系统日志配置
- light oj 1214 - Large Division (同于定理--整除运算)
- Poj 3903 Stock Exchange(LIS)
- Python装饰器与面向切面编程
- Git和Egit安装使用总结
- 一些常见的运算符重载
- TOJ 2142.Pascal Library
- PHP如何实现网址伪静态
- 王学岗app架构设计-MVP