diff --git a/BlazorTp1/Program.cs b/BlazorTp1/Program.cs index a78b722..a52bc75 100644 --- a/BlazorTp1/Program.cs +++ b/BlazorTp1/Program.cs @@ -37,6 +37,8 @@ builder.Services.AddControllers(); // Add the localization to the app and specify the resources path builder.Services.AddLocalization(opts => { opts.ResourcesPath = "Resources"; }); +builder.Logging.AddConfiguration(builder.Configuration.GetSection("Logging")); + // Configure the localtization builder.Services.Configure(options => { diff --git a/BlazorTp1/wwwroot/appsettings.json b/BlazorTp1/wwwroot/appsettings.json new file mode 100644 index 0000000..ef6372d --- /dev/null +++ b/BlazorTp1/wwwroot/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Trace", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + } +} \ No newline at end of file