我想以编程方式启用/禁用登录。我试过了
启用:
client.property ( LoggingFeature.LOGGING_FEATURE_VERBOSITY_CLIENT, LoggingFeature.Verbosity.PAYLOAD_ANY );
client.property ( LoggingFeature.LOGGING_FEATURE_LOGGER_LEVEL_CLIENT, "INFO");
禁用:
client.property ( LoggingFeature.LOGGING_FEATURE_VERBOSITY_CLIENT, null) ;
client.property ( LoggingFeature.LOGGING_FEATURE_LOGGER_LEVEL_CLIENT, null);
但运气不好。日志记录本身是有效的。
属性更改时是否必须重新创建客户端?
有人有线索吗?
向格里问好
暂无答案!
目前还没有任何答案,快来回答吧!