Reputation: 2686
I've been assigned to start a new Logging Project from zero in VB.NET.
The final exit of the main project is information organized in paragraphs like this:
Paragraph's title 1
Paragraph's content 1.
Paragraph's title 2
Paragraph's content 2.
Every paragraph correspond to a database connection. Every connection is made with an entire diferent database.
i need my logging project to save everything the user does, so the logging exit would be like the system exit but with exceptions and other important information like this:
Paragraph's title 1
Paragraph's content 1.
Paragraph's title 2
User wasn't able to see this information because an exception ocurred: System.WhateverException:couldn't connect to WCF.
as you can see the exit is the same but i need to create a detail log because the information is delicate and the DBA needs to now wich user did what and what was the response of the system.
Also i need it to be and independant project so i can re-use it in another projects.
Seeing the final exit of both the main project and the logging project, what would you recommend me to use for logging in .NET?
Is there an example project?
Thank you.
Upvotes: 0
Views: 85
Reputation: 7449
I would recomment using well known logging solution for .Net such as:
Personally I prefer NLog, For examples on how to use NLog check this
Upvotes: 1