diff --git a/backend/OnlineStore.WebApi/Program.cs b/backend/OnlineStore.WebApi/Program.cs index 7de5bcf..d946345 100644 --- a/backend/OnlineStore.WebApi/Program.cs +++ b/backend/OnlineStore.WebApi/Program.cs @@ -15,10 +15,10 @@ using Serilog; using Serilog.Events; - Log.Logger = new LoggerConfiguration() .WriteTo.Console() - .CreateBootstrapLogger(); + .CreateLogger(); + Log.Information("Starting up"); try { @@ -109,7 +109,6 @@ }); builder.Services.AddAuthorization(); - const string dbPath = "myapp.db"; builder.Services.AddDbContext( options => options.UseSqlite($"Data Source={dbPath}"));