candrews / log4jdbc-spring-boot-starter

Starter for using Log4jdbc with Spring Boot
Apache License 2.0
77 stars 18 forks source link

Can it filter by packages #10

Open hairinwind opened 5 years ago

hairinwind commented 5 years ago

I don't want to see the sql generated by spring batch to its batch tables. I only want to see the sql generated from my dao. I put in this in my application.properties, but it still prints out spring batch sql. log4jdbc.debug.stack.prefix=^com.mycompany.*.

The spring out sql is like this 2019-07-12 16:18:51,980 DEBUG [RMI TCP Connection(1)-172.20.227.231] net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegator: org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:438)

  1. SELECT 1