add logging 🤦
This commit is contained in:
parent
b2f34089da
commit
a7c6192c17
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@ var builder = WebApplication.CreateBuilder(args);
|
|||
|
||||
builder.Services.AddOpenApi();
|
||||
|
||||
builder.Services.AddLogging();
|
||||
builder.Logging.AddConsole();
|
||||
builder.Services.AddHttpLogging();
|
||||
|
||||
var connectionString = builder.Configuration.GetConnectionString("Database");
|
||||
if (connectionString is null)
|
||||
throw new Exception("no database connection string found");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue