Reputation: 4313
After upgrading to Cayenne 4 BETA 1, I'm getting lots of logs. How do I turn them off?
For example:
org.apache.cayenne.log.Slf4jJdbcEventLogger logBeginTransaction org.apache.cayenne.log.Slf4jJdbcEventLogger logCommitTransaction ... etc.
(I believe the methods are different from the previous versions.)
Thanks!
Upvotes: 0
Views: 269
Reputation: 266
Methods generally are same as in previous version but underlying API used by Cayenne has changed from commons-logging to SLF4J. And JDBC events logger was renamed accordingly.
You can either:
ServerRuntime runtime = ServerRuntime.builder()
.addConfig("your_project.xml")
.addModule(binder -> binder.bind(JdbcEventLogger.class).to(NoopJdbcEventLogger.class))
.build();
Upvotes: 1