我正在使用log4jdbc进行春季启动包装:
<groupId>com.integralblue</groupId>
<artifactId>log4jdbc-spring-boot-starter</artifactId>
似乎从以下方面引入了实现:
<groupId>org.bgee.log4jdbc-log4j2</groupId>
<artifactId>log4jdbc-log4j2-jdbc4.1</artifactId>
尽管我的日志包含大量条目,但它们为hibernate_sequence设置了next_val:
2018-10-11 18:03:03,278 DEBUG [TradesFetcher-gdax] [Slf4jSpyLogDelegator.java:368] jdbc.sqltiming - org.hibernate.id.enhanced.TableStructure.executeUpdate(TableStructure.java:205)
2211826. update hibernate_sequence set next_val= 39204101 where next_val=39204100
{executed in 1 msec}
2018-10-11 18:03:03,282 DEBUG [TradesFetcher-gdax] [Slf4jSpyLogDelegator.java:368] jdbc.sqltiming - org.hibernate.id.enhanced.TableStructure.executeQuery(TableStructure.java:216)
2211827. select next_val as id_val from hibernate_sequence for update
{executed in 0 msec}
2018-10-11 18:03:03,283 INFO [TradesFetcher-gdax] [Slf4jSpyLogDelegator.java:610] jdbc.resultsettable -
|---------|
|next_val |
|---------|
|39204101 |
|---------|
有什么办法告诉log4jdbc不记录吗?