theodo-fintech / spring-search

Provides advanced search capabilities to a JPA entity
MIT License
193 stars 44 forks source link

Printing the Spec Object (logging) #18

Open yanivl78 opened 4 years ago

yanivl78 commented 4 years ago

Hello. We would like to pring and log the Request content that been send via the rest api controller , into a log or system.out.

how can this be done? the API doesnt have any method to print. toString brings the ref to the stack , without content.

@SearchSpec Specification<Dol> filter, Sort sort

Our point is to print "filter"

Please Assist?

luc-boussant commented 3 years ago

There is a debug log for the request that logs the class Dol and the search query param that will be used to build the specification. Moreover to print the filter parameter with a pretty format, we would need to add a method to the SpecificationImpl interface. Did you have a particular format in mind for what you would want the pretty print to be ?