├── Log4NetWeb.sln
├── Log4NetWeb.v12.suo
├── Log4NetWeb
├── Global.asax
├── Global.asax.cs
├── Lib
│ └── log4net.dll
├── Log4NetWeb.csproj
├── Log4NetWeb.csproj.user
├── LogBackUp
│ └── 2015-08-01.Err
├── Properties
│ └── AssemblyInfo.cs
├── Web.Debug.config
├── Web.Release.config
├── Web.config
├── WebForm1.aspx
├── WebForm1.aspx.cs
├── WebForm1.aspx.designer.cs
├── bin
│ ├── Log4NetWeb.dll
│ ├── Log4NetWeb.dll.config
│ ├── Log4NetWeb.pdb
│ └── log4net.dll
└── obj
│ └── Debug
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── Log4NetWeb.csproj.FileListAbsolute.txt
│ ├── Log4NetWeb.csprojResolveAssemblyReference.cache
│ ├── Log4NetWeb.dll
│ ├── Log4NetWeb.pdb
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
└── README.md
/Log4NetWeb.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.31101.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Log4NetWeb", "Log4NetWeb\Log4NetWeb.csproj", "{0AAFCF00-7168-4705-9811-6BEF04193E3D}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {0AAFCF00-7168-4705-9811-6BEF04193E3D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {0AAFCF00-7168-4705-9811-6BEF04193E3D}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {0AAFCF00-7168-4705-9811-6BEF04193E3D}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {0AAFCF00-7168-4705-9811-6BEF04193E3D}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/Log4NetWeb.v12.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/Log4Net-Web/22cb468e556abaf69357745347e555a02468512e/Log4NetWeb.v12.suo
--------------------------------------------------------------------------------
/Log4NetWeb/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Log4NetWeb.Global" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/Log4NetWeb/Global.asax.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Security;
6 | using System.Web.SessionState;
7 |
8 | namespace Log4NetWeb
9 | {
10 | public class Global : System.Web.HttpApplication
11 | {
12 | protected void Application_Start(object sender, EventArgs e)
13 | {
14 | log4net.Config.XmlConfigurator.Configure();
15 | }
16 | }
17 | }
--------------------------------------------------------------------------------
/Log4NetWeb/Lib/log4net.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/Log4Net-Web/22cb468e556abaf69357745347e555a02468512e/Log4NetWeb/Lib/log4net.dll
--------------------------------------------------------------------------------
/Log4NetWeb/Log4NetWeb.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 |
8 |
9 | 2.0
10 | {0AAFCF00-7168-4705-9811-6BEF04193E3D}
11 | {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
12 | Library
13 | Properties
14 | Log4NetWeb
15 | Log4NetWeb
16 | v4.5.1
17 | true
18 |
19 |
20 |
21 |
22 |
23 |
24 | true
25 | full
26 | false
27 | bin\
28 | DEBUG;TRACE
29 | prompt
30 | 4
31 |
32 |
33 | pdbonly
34 | true
35 | bin\
36 | TRACE
37 | prompt
38 | 4
39 |
40 |
41 |
42 | False
43 | Lib\log4net.dll
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 | Web.config
66 |
67 |
68 | Web.config
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 | Global.asax
80 |
81 |
82 |
83 | WebForm1.aspx
84 | ASPXCodeBehind
85 |
86 |
87 | WebForm1.aspx
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 | 10.0
97 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | True
107 | True
108 | 31650
109 | /
110 | http://localhost:31650/
111 | False
112 | False
113 |
114 |
115 | False
116 |
117 |
118 |
119 |
120 |
127 |
--------------------------------------------------------------------------------
/Log4NetWeb/Log4NetWeb.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ShowAllFiles
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | CurrentPage
13 | True
14 | False
15 | False
16 | False
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | True
26 | True
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/Log4NetWeb/LogBackUp/2015-08-01.Err:
--------------------------------------------------------------------------------
1 | 01 Aug 2015 12:59:24,285 [7164] ERROR ErrorLog - Divide By Zero Exception
2 |
--------------------------------------------------------------------------------
/Log4NetWeb/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Log4NetWeb")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Log4NetWeb")]
13 | [assembly: AssemblyCopyright("Copyright © 2015")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("429f3185-4a9c-48b1-a070-ef81a6ac2c44")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Revision and Build Numbers
33 | // by using the '*' as shown below:
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/Log4NetWeb/Web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
29 |
30 |
--------------------------------------------------------------------------------
/Log4NetWeb/Web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
30 |
31 |
--------------------------------------------------------------------------------
/Log4NetWeb/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Log4NetWeb/WebForm1.aspx:
--------------------------------------------------------------------------------
1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Log4NetWeb.WebForm1" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Log4NetWeb/WebForm1.aspx.cs:
--------------------------------------------------------------------------------
1 | using log4net;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace Log4NetWeb
10 | {
11 | public partial class WebForm1 : System.Web.UI.Page
12 | {
13 | protected void Page_Load(object sender, EventArgs e)
14 | {
15 | if (!IsPostBack)
16 | {
17 | ILog logger = log4net.LogManager.GetLogger("ErrorLog");
18 | try
19 | {
20 | throw new Exception("Divide By Zero Exception", new DivideByZeroException());
21 | }
22 | catch (Exception ex)
23 | {
24 | logger.Error(ex.Message);
25 | }
26 | }
27 | }
28 | }
29 | }
--------------------------------------------------------------------------------
/Log4NetWeb/WebForm1.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace Log4NetWeb
11 | {
12 |
13 |
14 | public partial class WebForm1
15 | {
16 |
17 | ///
18 | /// form1 control.
19 | ///
20 | ///
21 | /// Auto-generated field.
22 | /// To modify move field declaration from designer file to code-behind file.
23 | ///
24 | protected global::System.Web.UI.HtmlControls.HtmlForm form1;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Log4NetWeb/bin/Log4NetWeb.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/Log4Net-Web/22cb468e556abaf69357745347e555a02468512e/Log4NetWeb/bin/Log4NetWeb.dll
--------------------------------------------------------------------------------
/Log4NetWeb/bin/Log4NetWeb.dll.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Log4NetWeb/bin/Log4NetWeb.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/Log4Net-Web/22cb468e556abaf69357745347e555a02468512e/Log4NetWeb/bin/Log4NetWeb.pdb
--------------------------------------------------------------------------------
/Log4NetWeb/bin/log4net.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/Log4Net-Web/22cb468e556abaf69357745347e555a02468512e/Log4NetWeb/bin/log4net.dll
--------------------------------------------------------------------------------
/Log4NetWeb/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/Log4Net-Web/22cb468e556abaf69357745347e555a02468512e/Log4NetWeb/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/Log4NetWeb/obj/Debug/Log4NetWeb.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | F:\AKKI_DEV\RND\Log4NetWeb\Log4NetWeb\obj\Debug\Log4NetWeb.csprojResolveAssemblyReference.cache
2 | F:\AKKI_DEV\RND\Log4NetWeb\Log4NetWeb\bin\Log4NetWeb.dll.config
3 | F:\AKKI_DEV\RND\Log4NetWeb\Log4NetWeb\bin\Log4NetWeb.dll
4 | F:\AKKI_DEV\RND\Log4NetWeb\Log4NetWeb\bin\Log4NetWeb.pdb
5 | F:\AKKI_DEV\RND\Log4NetWeb\Log4NetWeb\bin\log4net.dll
6 | F:\AKKI_DEV\RND\Log4NetWeb\Log4NetWeb\obj\Debug\Log4NetWeb.dll
7 | F:\AKKI_DEV\RND\Log4NetWeb\Log4NetWeb\obj\Debug\Log4NetWeb.pdb
8 |
--------------------------------------------------------------------------------
/Log4NetWeb/obj/Debug/Log4NetWeb.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/Log4Net-Web/22cb468e556abaf69357745347e555a02468512e/Log4NetWeb/obj/Debug/Log4NetWeb.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/Log4NetWeb/obj/Debug/Log4NetWeb.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/Log4Net-Web/22cb468e556abaf69357745347e555a02468512e/Log4NetWeb/obj/Debug/Log4NetWeb.dll
--------------------------------------------------------------------------------
/Log4NetWeb/obj/Debug/Log4NetWeb.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/Log4Net-Web/22cb468e556abaf69357745347e555a02468512e/Log4NetWeb/obj/Debug/Log4NetWeb.pdb
--------------------------------------------------------------------------------
/Log4NetWeb/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/Log4Net-Web/22cb468e556abaf69357745347e555a02468512e/Log4NetWeb/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/Log4NetWeb/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/Log4Net-Web/22cb468e556abaf69357745347e555a02468512e/Log4NetWeb/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/Log4NetWeb/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/akshayblevel/Log4Net-Web/22cb468e556abaf69357745347e555a02468512e/Log4NetWeb/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Log4Net-Web
2 |
3 | https://www.c-sharpcorner.com/UploadFile/db2972/error-logging-using-log4net-in-web-application/
4 |
--------------------------------------------------------------------------------