Repository navigation
Expand file tree
/
Copy pathWeb.config
More file actions
136 lines (134 loc) · 7.59 KB
/
Copy pathWeb.config
File metadata and controls
136 lines (134 loc) · 7.59 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- This section type declaration is needed unless you want to set things up entirely in code -->
<section name="Exceptional" type="StackExchange.Exceptional.Settings, StackExchange.Exceptional" />
</configSections>
<!-- Example minimal setup section that uses an in-memory error store: -->
<!--<Exceptional applicationName ="Samples.MVC5" />-->
<!-- Complete Exceptional Settings: only applicationName is required here, if given no store we'll default to memory. -->
<!-- Note: dataIncludePattern is optional - just here for demo purposes -->
<Exceptional applicationName="Samples.MVC5" dataIncludePattern="MyDataPrefix.*">
<!-- This entire section is optional, if you want to log all exceptions you can leave off <IgnoreErrors> -->
<IgnoreErrors>
<!-- Optional: Error messages to ignore -->
<Regexes>
<!-- Exceptions with messages matching a regular expression here will not be logged -->
<!--<add name="connection suuuuuuuucks" pattern="Request timed out\.$"/>-->
</Regexes>
<!-- Optional: Error types to ignore, e.g. <add type="System.Exception" /> or <add type="MyNameSpace.MyException" />-->
<Types>
<!-- Exceptions of the type here will not be logged, if you want to ignore an entire class of exception-->
<!--<add type="System.Exception" />-->
</Types>
</IgnoreErrors>
<LogFilters>
<Form>
<add name="password" replaceWith="********" />
</Form>
<Cookies>
<add name="authToken" replaceWith="**we don't record tokens!**" />
</Cookies>
<Headers>
<add name="X-Auth-Header" replaceWith="**not recorded**" />
</Headers>
<QueryString>
<add name="queryToken" replaceWith="**we don't record query tokens!**" />
</QueryString>
</LogFilters>
<!-- Email settings to send to, if an email per exception is desired, only toAddress is required, other defaults are pulled from the <system.net> section -->
<Email fromAddress="exceptions@example.com" fromDisplayName="Bob the Builder" toAddress="tester@example.com" smtpHost="localhost" />
<!-- Which ErrorStore to use, if no element is declared here a Memory store with defaults will be used -->
<ErrorStore type="Memory" />
<!-- Other store types, common attributes:
- rollupSeconds: optional (default 600 seconds), determines how long the window is to roll up exceptions with the same stack trace - 0 to not roll up
- backupQueueSize: optional (default 1000), determines how many errors to cache (excluding roll-ups) in memory when logging fails...every 2 seconds we'll retry logging and flush these out to the final store -->
<!-- JSON: size defaults to 200, this is how many files are kept before the oldest error is removed -->
<!--<ErrorStore type="JSON" path="~/Errors" size="200" />-->
<!-- SQL: only a connection string or connection string name is needed, many applications can log to the same place as long as they have unique names (otherwise we can't tell them apart). -->
<!--<ErrorStore type="SQL" connectionString="Server=.;Database=Local.Exceptions;Trusted_Connection=True;" />-->
<!--<ErrorStore type="SQL" connectionStringName="MyConnectionString" />-->
<!-- You can also use a MySQL Database with the MySQL ErrorStore -->
<!--<ErrorStore type="MySQL" connectionString="Server=.;Database=Exceptions;Username=Exceptions;Pwd=myPassword!" />-->
<!--<ErrorStore type="MySQL" connectionString="Server=macbook;Port=32770;Database=Exceptions;Username=Exceptions;Pwd=myPassword!" />-->
<!--<ErrorStore type="MySQL" connectionStringName="MyConnectionString" />-->
<!-- You can also use a MongoDB Database with the MongoDB ErrorStore -->
<!--<ErrorStore type="MongoDB" connectionString="mongodb://localhost/test" />-->
<!--<ErrorStore type="MongoDB" connectionStringName="MyConnectionString" />-->
</Exceptional>
<appSettings>
<add key="webpages:Version" value="2.0.0.0" />
<add key="webpages:Enabled" value="false" />
<add key="vs:EnableBrowserLink" value="false" />
<add key="PreserveLoginUrl" value="true" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<pages>
<namespaces>
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Optimization" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
</namespaces>
</pages>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<!-- OPTIONAL: if not using a router, or you don't want to access the errors directly via this application,
this is not necessary. A common scenario for this is logging all errors to a common SQL store and viewing
them through another application or a dashboard elsewhere (like Opserver).
Note: If the error list isn't exposed in the application, any errors in logging exceptions will be queued up,
but not visible (since that's exposed on the error list view).
-->
<add name="Exceptional" path="exceptions.axd" verb="POST,GET,HEAD" type="StackExchange.Exceptional.HandlerFactory, StackExchange.Exceptional" preCondition="integratedMode" />
</handlers>
<!-- Here the error log needs to be registered to catch all unhandled exceptions,
these are exceptions that make it all the way to being a 500 page the user sees. -->
<modules runAllManagedModulesForAllRequests="true">
<add name="ErrorLog" type="StackExchange.Exceptional.ExceptionalModule, StackExchange.Exceptional" />
</modules>
</system.webServer>
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="exceptions@domain.com">
<network host="localhost" port="25" />
</smtp>
</mailSettings>
</system.net>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.4.1.9004" newVersion="3.4.1.9004" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>