Closed hdpe closed 6 years ago
I like it a lot! It certainly provides a good place to address the other issues as you say. Thanks Ryan :+1:
P.S. A pedant would say LogFormatter
as it's not actually doing the logging.
Thanks for the PR!
Do you know when this version will be published to Maven Central?
@jmart1 I've just released 2.0.0, so it should be there shortly. Thanks for the reminder!
Yup its there. Thank you!!!
As discussed, it would be good to be able to customise the formatting of the request/response body before logging.
My particular use case is the need to obfuscate passwords sent in the request before writing to the log.
As a very first stab at this, how about allowing the
LoggingInterceptor
to be constructed with aLoggingFormatter
, something like:with a default implementation:
This would support resolution of e.g. #2 as well. Then perhaps #1 via introducing something like a
supports(MediaType)
method to the formatter?What do you think? Happy to prepare a PR following your feedback.