{
"Logging": {
"LogLevel": {
"Console": "Critical",
"Default": "Warning",
"System": "Warning",
"Microsoft": "Trace"
}
}
}
我用来加载配置文件的代码:
hostBuilder.ConfigureLogging ( ( context, builder ) =>
{
builder.AddConfiguration ( context.Configuration.GetSection ( "Logging" ) );
builder.AddConsole ( );
} );
Information
类别的日志级别:
System
,
Microsoft
Debug
对于
Default
. 我哪里出错了?