如何启用Hystrix DEBUG级别日志记录

pij*_*cse 6 java netflix spring-boot hystrix spring-cloud-netflix

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

hystrix.threadpool.default.maxQueueSize=12
hystrix.threadpool.default.keepAliveTimeMinute=2
hystrix.command.default.execution.isolation.strategy=SEMAPHORE
Run Code Online (Sandbox Code Playgroud)

如何才能看到这些属性应用于HystrixCommand?有什么办法可以为Hystrix启用调试级别日志记录吗?

TIA

pij*_*cse 6

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

logging:
  level:
   com.netflix.hystrix: DEBUG
Run Code Online (Sandbox Code Playgroud)