Skip to content

Commit 432f6f9

Browse files
committed
config log level
1 parent b57151d commit 432f6f9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Program.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ public static void Main(string[] args)
1919

2020
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
2121
WebHost.CreateDefaultBuilder(args)
22-
.UseStartup<Startup>();
22+
.UseStartup<Startup>()
23+
.ConfigureLogging((hostingContext, logging) =>
24+
{
25+
logging.AddAzureWebAppDiagnostics();
26+
});
2327
}
2428
}

appsettings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"Logging": {
33
"LogLevel": {
4-
"Default": "Warning"
4+
"Default": "Information"
55
}
66
},
77
"AllowedHosts": "*",

0 commit comments

Comments
 (0)