I have added log4net.dll reference in my bin folder.
I have created a site.log file on my root folder.
This is my webconfig;
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<section name="log4net" type="System.Configuration.IgnoreSectionHandler"/>
</configSections>
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=ServerName;Initial Catalog=DatabaseName;User ID=username;Password=password"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<httpRuntime executionTimeout="432000" maxRequestLength="1048560" />
<sessionState mode="InProc" timeout="350000" cookieless="false"/>
<custom ...
Go to the complete details ...