We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Motivation: Ability to create structured logs
Current realization
object DebugStatementInterceptor : StatementInterceptor { override fun beforeRollback(transaction: Transaction) { println("before (${transaction.id}): rollback") } override fun beforeCommit(transaction: Transaction) { println("before (${transaction.id}): commit") } override fun afterCommit() { val transaction = TransactionManager.currentOrNull() println("InitStatementInterceptor after (${transaction?.id}): commit") } override fun afterRollback() { val transaction = TransactionManager.currentOrNull() println("InitStatementInterceptor after (${transaction?.id}): rollback") } }
ideal:
object DebugStatementInterceptor : StatementInterceptor { override fun beforeRollback(transaction: Transaction) { println("before (${transaction.id}): rollback") } override fun beforeCommit(transaction: Transaction) { println("before (${transaction.id}): commit") } override fun afterCommit(id: String) { println("InitStatementInterceptor after ($id): commit") } override fun afterRollback(id: String) { println("InitStatementInterceptor after ($id): rollback") } }
The text was updated successfully, but these errors were encountered:
Add Transaction to lifecycle hooks for JetBrains#1530
320dbcb
Add Transaction to lifecycle hooks for #1530 (#1531)
e4d18db
Co-authored-by: Richard Romanowski <[email protected]>
Add Transaction to lifecycle hooks for #1530 / Backward compatibility
e3546ed
Add Transaction to lifecycle hooks for #1530 (#1531) / Wrong methods …
096682c
…fixed
No branches or pull requests
Motivation:
Ability to create structured logs
Current realization
ideal:
The text was updated successfully, but these errors were encountered: