無處不在,你可以使用默認設置我在哪裏可以找到用於配置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