mirror of
https://github.com/Polaris-Entertainment/bytefy.git
synced 2026-04-11 18:29:38 +00:00
ci: add seq logging (#12)
This commit is contained in:
@@ -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>();
|
||||
|
||||
|
||||
@@ -11,5 +11,13 @@
|
||||
"http://localhost:4200",
|
||||
"https://localhost:4200"
|
||||
]
|
||||
},
|
||||
"Seq": {
|
||||
"ServerUrl": "https://log.azaaxin.com",
|
||||
"ApiKey": "KEY",
|
||||
"MinimumLevel": "Trace",
|
||||
"LevelOverride": {
|
||||
"Microsoft": "Warning"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,5 +10,13 @@
|
||||
"http://bytefy.net",
|
||||
"https://bytefy.net"
|
||||
]
|
||||
},
|
||||
"Seq": {
|
||||
"ServerUrl": "https://log.azaaxin.com",
|
||||
"ApiKey": "KEY",
|
||||
"MinimumLevel": "Trace",
|
||||
"LevelOverride": {
|
||||
"Microsoft": "Warning"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user