1

In my java class, I have a session.save() statement which saves some thousand rows in the database at a time. Now as the spring.jpa.properties.hibernate.show_sql is true, it shows each and every insert statement in the console. This buries all important logs on the console and also other important hibernate query statements.

Is it possible to stop logging for any insert/save statements? OR Is it possible to stop particular class from logging? If yes then please show me a way. Thank you!

R Dhaval
  • 536
  • 1
  • 9
  • 21

1 Answers1

1

I don't know if it solves your problem entirely but you can, for example, log SQL statements to a separate file. check this

Community
  • 1
  • 1
  • This is not what I needed but yeah... This can be a solution for sure as there is no other solution available. Thanks.!! – R Dhaval Apr 20 '17 at 14:41