简体   繁体   English

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

[英]How to enable Hystrix DEBUG level logging

I have implemented Netflix OSS Hystrix in one of my Spring boot application. 我在我的一个Spring启动应用程序中实现了Netflix OSS Hystrix。 And configured some properties for the HystrixCommand. 并为HystrixCommand配置了一些属性。 But how can I verify that those properties are really used by HystrixCommand. 但是,如何验证HystrixCommand是否真正使用了这些属性。 For example, 例如,

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

How can I see that these properties are applied to HystrixCommand? 如何才能看到这些属性应用于HystrixCommand? Is there any way I can enable debug level logging for Hystrix? 有什么办法可以为Hystrix启用调试级别日志记录吗?

TIA TIA

I think I found the answer. 我想我找到了答案。 Adding below line generates Hystrix DEBUG level logging. 添加以下行会生成Hystrix DEBUG级别日志记录。

logging:
  level:
   com.netflix.hystrix: DEBUG

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM