Log4Net impole,entation in Visual Studio
1. Right click on Solution and select ‘Manage NuGet Packages for Solution…’. 2. Click on Browse, search ‘log4net’ and install Log4net. 3. Add [ assembly : log4net.Config. XmlConfigurator (Watch = true )] after [ assembly : AssemblyCulture ( "" )] line in ‘AssemblyInfo.cs’ under Properties. 4. Add private static readonly ILog _log = LogManager .GetLogger( MethodBase .GetCurrentMethod().DeclaringType); to the class where you want to add logging. 5. Add below line to App.config under “Configuration” tag. < configSections > < section name = " log4net " type = " log4net.Config.Log4NetConfigurationSectionHandler, log4net " /> </ configSections > < log4net > < root > ...