美文网首页
Spring cloud eureka的日志级别

Spring cloud eureka的日志级别

作者: 天冷请穿衣 | 来源:发表于2020-03-10 18:43 被阅读0次

2020-03-10

四个级别:

  • NONE: No logging(DEFAULT).
  • BASIC: Log only the request method and URL and the response status code and execution time.
  • HEADERS: Log the basic information along with request and response headers.
  • FULL:Log the headers, body, and metadata for both requests and responses.

yaml的配置方式:

feign:
  client:
    config:
      feignName:
        connectTimeout: 5000
        readTimeout: 5000
        loggerLevel: full

参考:https://cloud.spring.io/spring-cloud-static/spring-cloud-openfeign/2.2.2.RELEASE/reference/html/index.html#feign-logging

相关文章

网友评论

      本文标题:Spring cloud eureka的日志级别

      本文链接:https://www.haomeiwen.com/subject/ttygdhtx.html