In Spring Data R2DBC I can log SQL queries by using
logging.level.org.springframework.data.r2dbc=DEBUG
in the application.properties.
However, this doesn't log the actual values that are bound as query parameters.
How can I log the actual values of query parameters in Spring Data R2DBC?
This worked for me :
 logging:
  level:
    io.r2dbc.postgresql.QUERY: DEBUG # for queries
    io.r2dbc.postgresql.PARAM: DEBUG # for parameters
I found it here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With