feign icon indicating copy to clipboard operation
feign copied to clipboard

full logging is very verbose.

Open Ed42 opened this issue 3 years ago • 1 comments

Feign logging FULL is very verbose, up to 16 log messages per REST call (depending on headers). Is there any chance of an option to produce just two log messages in JSON format? Example for reply:

{
    "status":           200,
    "response_headers": [<list of HTTP response headers>],
    "payload":          <REST payload>
}

Everything in a single log message. This would provide the same really useful information but in a format that would greatly reduce the load on log aggregators such as ELK.

Ed42 avatar Apr 26 '22 03:04 Ed42

how output full logs? i use feign11.8,The configuration does not take effect,configuration as follow logging: level: com.byt.feign.pms.upm.client.UpmTenantFeignClient: debug feign: client: config: default: loggerLevel: full

IvesQing avatar Aug 24 '22 07:08 IvesQing

The default Logger is very simple and meant to provide an entry point into some logging systems. If your needs are different, feel free to provide your own Logger implementation. For instance, you could build another one that only logs at the very end, in a single line. It's all up to you.

kdavisk6 avatar Oct 07 '22 20:10 kdavisk6