You have several options for this, and none of them include the system level registration that some offer.
Parameters:
- If you store procedures in a database that act as an interface for CRUD operations, you're in luck as you can add a log there
- If you do not have stored procedures as an interface to the database, you can still not transcode the application and use triggers in the tables of interest to you.
- The final option would be to change the application code and insert the log into the application code itself.
Each option has its own advantages and disadvantages, so try to learn as much as possible before jumping in any direction.
EDIT:
WHY you don't need Nlog or log4net
You do not need them, because from the question it is obvious that you need data on completed transactions in the database. Of course, both logging structures will be able to put data into the database, but formatting the data for the database will require many additional steps, then useful information about the objects that were involved in the transaction is extracted from the formatted data, and so on.
source share