Вот мой Program.cs:
Код: Выделить всё
public static void Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
// configure logging
var logger = LoggerFactory.Create(logging =>
{
logging.ClearProviders();
logging.AddConsole();
logging.AddDebug();
logging.AddAzureWebAppDiagnostics(); // Add Azure Web App logging
}).CreateLogger
();
// other code
}
Код: Выделить всё
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
},
"AzureAppServices": {
"File": {
"IsEnabled": true,
"LogLevel": {
"Default": "Information"
}
}
},
"Blob": {
"IsEnabled": true,
"LogLevel": {
"Default": "Information"
}
},
"Table": {
"IsEnabled": true,
"LogLevel": {
"Default": "Information"
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/786 ... ream-net-6
Мобильная версия