Removed Serilog.Exceptions.

This commit is contained in:
Roger Far 2023-03-08 20:08:07 -07:00
parent ab64e5dcbd
commit 729b1a2a31
2 changed files with 0 additions and 3 deletions

View file

@ -15,7 +15,6 @@
<PackageReference Include="MonoTorrent" Version="2.0.7" />
<PackageReference Include="RD.NET" Version="2.1.3" />
<PackageReference Include="Serilog" Version="2.12.0" />
<PackageReference Include="Serilog.Exceptions" Version="8.4.0" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="SharpCompress" Version="0.32.2" />
</ItemGroup>

View file

@ -9,7 +9,6 @@ using RdtClient.Service.Middleware;
using RdtClient.Service.Services;
using Serilog;
using Serilog.Events;
using Serilog.Exceptions;
var builder = WebApplication.CreateBuilder(new WebApplicationOptions
{
@ -40,7 +39,6 @@ builder.WebHost.ConfigureKestrel(options =>
if (appSettings.Logging?.File?.Path != null)
{
builder.Host.UseSerilog((_, lc) => lc.Enrich.FromLogContext()
.Enrich.WithExceptionDetails()
.WriteTo.File(appSettings.Logging.File.Path,
rollOnFileSizeLimit: true,
fileSizeLimitBytes: appSettings.Logging.File.FileSizeLimitBytes,