Note for readers:
This source code describes a real world use case of a logging framework. How Singleton Design Pattern is a perfect fit when you try to design a component which will be used commonly across all the layers of your solution for logging information into a persistent storage medium.
How to use the source code:
You would require the below mentioned software on your machine as prerequisites to compile and run the source code (written in C# language) on your computer:
- Visual Studio 2015 or above. I used the community edition which is distributed free from Microsoft.
In case you have any lower version of Visual Studio (VS), then simply create three new projects as per the folder structure that I’ve provided in "src" folder. Then, add all the respective files into corresponding projects and you're good to go.