net core3.1整合收集日誌- sentry

飛雪NET發表於2020-11-29

一、配置

二、建立.net core 專案

Install-Package Sentry.AspNetCore -Version 2.1.8

appsettings.json

  "Sentry": {
    "Dsn": "http://5d8a234d310844e78f1470de5f2436d7@192.168.1.123:9001/4",
    "IncludeRequestPayload": true,
    "SendDefaultPii": true,
    "MinimumBreadcrumbLevel": "Debug",
    "MinimumEventLevel": "Warning",
    "AttachStackTrace": true,
    "Debug": true,
    "DiagnosticsLevel": "Error"
  },

執行效果: 

 

相關文章