Apples and oranges.
Log4net and other custom “logging” are just a way to capture the events that the application reports. The "journal" in this context refers to the fact that the storage is used by this infrastructure to store information about these events.
On the other hand, the database log is something completely different. To maintain consistency and atomicity databases, use the so-called Write-Ahead-Log protocol. In WAL, all changes are first written to the log or log before they are applied to the data. This allows you to restore the journal log (journal) and return data to a consistent state, rolling back from any idle work.
Database logs have absolutely nothing to do with your application code. Any database update will be automatically registered by the engine, simply because that is how any data in the database is updated. You cannot change this, and you do not have access to what is written in the journal (strictly speaking, you can look into the journal, but you will not find any useful information for your application).
source share