httpclient 日志如何关闭

通过对 logback.xml 文件配置,即可实现对不同日志的打印设置,如下:


<configuration>
    <include resource="com/onlyou/framework/boot/logback/default.xml"/>
    <logger name="springfox" level="info" />
    <logger name="org.mongodb.driver" level="info" />
    <logger name="sun.rmi" level="info" />
    <property name="LOG_MAX_HISTORY_COUNT" value="7"/>
	
    <logger name="org.apache" level="WARN" />
    <logger name="httpclient" level="WARN" />
configuration>

你可能感兴趣的:(log4j,logback)