How do I log com.fasterxml.jackson errors with Quarkus?
问题 I use Jackson to check and databind input JSON for a REST API, and I would like to log the error when the input doesn’t match a @Valid constraint. However, the exceptions are throwned as a Response by the API but do not appear in Quarkus’ logs. How do I log Jackson’s exceptions ? 回答1: One has to create a handler for the Jackson exceptions, e.g. using ExceptionMapper. The following example catches all exceptions of type JsonProcessingException (finer tuning is obviously possible), logs them as