asp.nerd
asp.nerd

Reputation: 23

Spring batch repository logging

Can the sql calls made by spring batch to store job repository information be logged? i am using oracle database and i am unable to find a way to log those calls.

Upvotes: 1

Views: 311

Answers (2)

Alex Fernandez
Alex Fernandez

Reputation: 1942

Based on your requirement, it would be better to use hibernate as your ORM for spring batch because, it has the capability to log sql statements. Below is an example, that I created using hibernate.

https://github.com/alex-fernandez/create-batch-job-mysql

Upvotes: 0

Fortyrunner
Fortyrunner

Reputation: 12782

This link on the Spring forums may help.

The Spring Batch framework will just use the Spring Framework JDBC classes so adjusting the core logging will give you what you want.

Upvotes: 1

Related Questions