How can I disable logging of Spring Batch SQL queries?
They are logged from org.springframework.jdbc.core.JdbcTemplate
logger because of:
logging.level:
org.springframework.jdbc: TRACE
and look like:
2017-05-27 20:41:55.957 DEBUG 13088 --- [jobLauncherTaskExecutor-1] o.s.jdbc.core.JdbcTemplate : Executing prepared SQL update
2017-05-27 20:41:55.957 DEBUG 13088 --- [jobLauncherTaskExecutor-1] o.s.jdbc.core.JdbcTemplate : Executing prepared SQL statement [UPDATE BATCH_JOB_EXECUTION_CONTEXT SET SHORT_CONTEXT = ?, SERIALIZED_CONTEXT = ? WHERE JOB_EXECUTION_ID = ?]
2017-05-27 20:41:55.958 DEBUG 13088 --- [jobLauncherTaskExecutor-1] o.s.jdbc.core.JdbcTemplate : SQL update affected 1 rows
With such enormous amount of these messages I can't see my application messages (that have matter).
The problem is that by disabling this logger my application SQL queries will also be disabled.