feat: Add serilog (#5)
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
using HomeApi.Registration;
|
||||
using Scalar.AspNetCore;
|
||||
using Serilog;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
builder.Services.AddLogging(loggingBuilder =>
|
||||
{
|
||||
loggingBuilder.AddSeq(builder.Configuration.GetSection("Seq"));
|
||||
});
|
||||
builder.Services.AddHttpClient();
|
||||
builder.Services.AddMediatR(cfg => cfg.RegisterServicesFromAssemblyContaining<Program>());
|
||||
builder.Services.AddControllers();
|
||||
@@ -22,4 +26,4 @@ app.UseAuthorization();
|
||||
|
||||
app.MapControllers();
|
||||
|
||||
app.Run();
|
||||
app.Run();
|
||||
|
||||
Reference in New Issue
Block a user