Source from CodeProject
A Brief Introduction to the log4net logging library, using C# - Part 1
A Brief Introduction to the log4net logging library, using C# - Part 2
Add below code into AsemblyInfo.cs file.
[assembly: log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config",Watch=true )]