How to log transaction info

This is an example of Rails:

2.6.3 :001 > User.create(name: "Bob")
   (0.9ms)  SELECT sqlite_version(*)
   (0.1ms)  begin transaction
  User Create (0.8ms)  INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)  [["name", "Bob"], ["created_at", "2020-11-28 03:16:01.252865"], ["updated_at", "2020-11-28 03:16:01.252865"]]
   (1.2ms)  commit transaction
 => #<User id: 2, name: "Bob", created_at: "2020-11-28 03:16:01", updated_at: "2020-11-28 03:16:01">

Can we show begin transaction commit transaction in log?

Comment From: github-actions[bot]

The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 2 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking

Comment From: shushenghong

yes, transactions need log too

Comment From: williamoliveira

SAVEPOINTS seems to have logs, why BEGIN and ROLLBACK does not?