spring-boot-data-source-decorator icon indicating copy to clipboard operation
spring-boot-data-source-decorator copied to clipboard

datasource-proxy-sample is not writing query logs

Open gtiwari333 opened this issue 2 years ago • 1 comments
trafficstars

NOT A BUG!

When I run endpoints from SampleController or when I run tests, the datasource-proxy-sample module is not producing any logs into console. My first thought was there's something broken with the library. But later I found its due to the default log levels on the config.

I needed to change the log level with one of the following:

logging:
  level:
    net.ttddyy.dsproxy.listener.logging: DEBUG

OR

decorator:
  datasource:
    datasource-proxy:
      query:
        log-level: INFO

Please document this somewhere on the README file so that people won't run into any confusion. Let me you if you accept PRs.

gtiwari333 avatar Mar 12 '23 20:03 gtiwari333

@gtiwari333 feel free to submit PR. I think it's worth documenting that spring boot logging level needs to be changed

gavlyukovskiy avatar Mar 12 '23 23:03 gavlyukovskiy