Removed Serilog.Exceptions.
This commit is contained in:
parent
ab64e5dcbd
commit
729b1a2a31
2 changed files with 0 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue