This is an example of a logger application, to log messages to a console, file or database. This is a proposal of solution for an examination, to make the provided code more efficient and to use better coding standards.
Some points of interest:
- Use of dependency injection
- Unit testing
- Classes grouped in a multier-like architecture, but as this is an example, I just used folders to represent this concept.
Some tools/frameworks/libraries used:
- Visual Studio 2022
- .NET 8
- Castle Windsor
- XUnit, AutoFixture and Moq (unit testing)