There’s not much to this post, other than a very minimal setup for a console application using log4net for logging, with some nice basics, such as:
- red highlighting of errors
- yellow highlighting of warnings
- logs are written to both console and file
First, get log4net from Nuget and add the following line to AssemblyInfo.cs
.
Here’s a sample App.config
.
And finally a simple Program.cs
!