File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 1
1
using Azure . Identity ;
2
+ using Microsoft . ApplicationInsights . Extensibility ;
2
3
using Microsoft . AspNetCore . Authentication . JwtBearer ;
3
4
using Microsoft . IdentityModel . Tokens ;
5
+ using Serilog ;
4
6
using WMS . WebUI . Extensions ;
5
7
using WMS . WebUI . Filters ;
6
8
using WMS . WebUI . Services ;
68
70
builder . Configuration . AddAzureKeyVault (
69
71
new Uri ( "https://wms-webui-configurations.vault.azure.net/" ) ,
70
72
new DefaultAzureCredential ( ) ) ;
73
+
74
+ builder . Host . UseSerilog ( ( context , configuration ) => configuration
75
+ . MinimumLevel . Debug ( )
76
+ . WriteTo . ApplicationInsights (
77
+ new TelemetryConfiguration
78
+ {
79
+ InstrumentationKey = "99999930-e6b4-46ed-95cb-73ef51449b94"
80
+ } ,
81
+ TelemetryConverter . Traces ) ) ;
71
82
}
72
83
73
84
app . UseHttpsRedirection ( ) ;
Original file line number Diff line number Diff line change 11
11
<PackageReference Include =" Azure.Identity" Version =" 1.12.0" />
12
12
<PackageReference Include =" Microsoft.AspNetCore.Authentication.JwtBearer" Version =" 8.0.7" />
13
13
<PackageReference Include =" Serilog" Version =" 4.0.1" />
14
+ <PackageReference Include =" Serilog.AspNetCore" Version =" 8.0.2" />
14
15
<PackageReference Include =" Serilog.Sinks.ApplicationInsights" Version =" 4.0.0" />
15
16
<PackageReference Include =" Syncfusion.EJ2.AspNet.Core" Version =" 26.1.40" />
16
17
<PackageReference Include =" Syncfusion.Licensing" Version =" 26.1.40" />
You can’t perform that action at this time.
0 commit comments