ci: add seq logging (#12)

This commit is contained in:
2025-09-27 22:20:50 +02:00
committed by GitHub
parent b5ca241fe7
commit 763abf4e5d
5 changed files with 95 additions and 1 deletions

View File

@@ -7,6 +7,10 @@ var builder = WebApplication.CreateBuilder(args);
builder.Services.AddAntiforgery(options => options.HeaderName = "2311d8d8-607d-4747-8939-1bde65643254");
builder.Services.AddSingleton<ConversionQueueService>();
builder.Services.AddHostedService(provider => provider.GetRequiredService<ConversionQueueService>());
builder.Services.AddLogging(loggingBuilder =>
{
loggingBuilder.AddSeq(builder.Configuration.GetSection("Seq"));
});
var corsSettings = builder.Configuration.GetSection("Cors").Get<CorsSettings>();

View File

@@ -11,5 +11,13 @@
"http://localhost:4200",
"https://localhost:4200"
]
},
"Seq": {
"ServerUrl": "https://log.azaaxin.com",
"ApiKey": "KEY",
"MinimumLevel": "Trace",
"LevelOverride": {
"Microsoft": "Warning"
}
}
}

View File

@@ -10,5 +10,13 @@
"http://bytefy.net",
"https://bytefy.net"
]
},
"Seq": {
"ServerUrl": "https://log.azaaxin.com",
"ApiKey": "KEY",
"MinimumLevel": "Trace",
"LevelOverride": {
"Microsoft": "Warning"
}
}
}

View File

@@ -18,6 +18,7 @@
<ItemGroup>
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="14.0.0" />
<PackageReference Include="Magick.NET.Core" Version="14.0.0" />
<PackageReference Include="Seq.Extensions.Logging" Version="8.0.0" />
</ItemGroup>
</Project>