无处不在,你可以使用默认设置我在哪里可以找到用于配置Microsoft扩展日志记录设置的文档?
{
"Logging": {
"IncludeScopes": false,
"LogLevel": {
"Default": "Debug",
"System": "Information",
"Microsoft": "Information"
}
}
}
我想知道是否有比这更,对于exmple如果我可以自定义消息的格式像NLOG布局属性找到例子。
<target name="logfile" xsi:type="File" fileName="file.txt" layout="${date:format=yyyyMMddHHmmss} ${message}" />
“微软扩展日志”是什么意思? –
OP可能是指'Microsoft.Extensions.Logging'命名空间和包([GitHub项目页面](https://github.com/aspnet/Logging))。他们的[示例](https://github.com/aspnet/Logging/blob/dev/samples/SampleApp/logging.json)与OP的示例非常相似。 – stakx