我关闭了www.example.com文件中的spring Boot actuator liveness/readiness日志application.properties,并使用
management.endpoint.health.probes.enabled =true
management.health.livenessstate.enabled=true
management.health.readinessstate.enabled=true
但是它在Kubernate环境中记录健康检查日志...
有没有办法关闭健康检查日志……
感谢您的回复。。
1条答案
按热度按时间qoefvg9y1#
我不确定它是否在Kubernets pod中工作,但我知道它只是禁用控制台日志进行健康检查(路由保持工作)
我的RequestLoggingFilterConfiguration类可以是这样的:
只是你知道这段代码是Kotlin,但使用Sping Boot