Category Archives: C#

Simple Log4Net Install and Usage

Click Project -> Mange NuGet Packages Choose NuGet in Package Source. Search for Log4Net Choose Log4Net and Install Add one line to Project->Properties->AssemblyInfo.cs. This line will path to the Log4Net.xml config file. [assembly: log4net.Config.XmlConfigurator(ConfigFile = “log4net.xml”, Watch = true)] Add new xml item to the project called log4net.xml (or whatever you called it above) Hereā€¦ Read More »