Skip to content

Commit 8b45acd

Browse files
committed
Added logging sample to asp.net core sample app
1 parent afb868c commit 8b45acd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

samples/Exceptionless.SampleAspNetCore/Startup.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
3232
//OR
3333
//loggerFactory.AddExceptionless((c) => c.ReadFromConfiguration(Configuration));
3434

35+
loggerFactory.AddExceptionless();
3536
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
3637
loggerFactory.AddDebug();
3738

src/Platforms/Exceptionless.AspNetCore/Exceptionless.AspNetCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<PackageReference Include="Microsoft.Extensions.DiagnosticAdapter" Version="2.0.0" />
3535
<PackageReference Include="Microsoft.Net.Http.Headers" Version="2.0.0" />
3636
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="4.4.1" />
37-
<PackageReference Include="System.Net.Http" Version="4.3.2" />
37+
<PackageReference Include="System.Net.Http" Version="4.3.3" />
3838
<PackageReference Include="System.Net.Primitives" Version="4.3.0" />
3939
</ItemGroup>
4040

0 commit comments

Comments
 (0)