Enterprise Application Architecture with .NET Core
by Ganesan Senthilvel, Ovais Mehboob Ahmed Khan, Habib Qureshi
Logging events
Logging events contain some constant numbers, which are used while logging information. When developing an enterprise application, it is a recommended approach to provide a specific action number, irrespective of whether it's an error, information, warning, and so on.
This helps the developer to trace out the exact action which was executed on that piece of code when the message was logged. And, in the event of an error, it immediately gives at a glance meaning about the error type, making it easy for the developer or support team to identity the root cause and resolve it.
Here are a few of the sample logging events we have defined in our project, which will be used through the layers where logging will be implemented:
public ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access