如何启用 Hystrix DEBUG 级别的日志记录 [英] How to enable Hystrix DEBUG level logging

查看:48
本文介绍了如何启用 Hystrix DEBUG 级别的日志记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的一个 Spring Boot 应用程序中实现了 Netflix OSS Hystrix.并为 HystrixCommand 配置了一些属性.但是我如何验证这些属性是否真的被 HystrixCommand 使用了.例如,

I have implemented Netflix OSS Hystrix in one of my Spring boot application. And configured some properties for the HystrixCommand. But how can I verify that those properties are really used by HystrixCommand. For example,

hystrix.threadpool.default.maxQueueSize=12
hystrix.threadpool.default.keepAliveTimeMinute=2
hystrix.command.default.execution.isolation.strategy=SEMAPHORE

我怎样才能看到这些属性被应用到了 HystrixCommand 上?有什么方法可以为 Hystrix 启用调试级别日志记录?

How can I see that these properties are applied to HystrixCommand? Is there any way I can enable debug level logging for Hystrix?

TIA

推荐答案

我想我找到了答案.添加以下行会生成 Hystrix DEBUG 级别的日志记录.

I think I found the answer. Adding below line generates Hystrix DEBUG level logging.

logging:
  level:
   com.netflix.hystrix: DEBUG

这篇关于如何启用 Hystrix DEBUG 级别的日志记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆