答案 0 :(得分:0)
如果遇到任何人,我能够做到:
<add key="serilog:using:Slack" value="Serilog.Sinks.Slack" />
<add key="serilog:write-to:Slack.webhookUrl" value="https://hooks.slack.com/services/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" />
<add key="serilog:write-to:Slack.restrictedToMinimumLevel" value="Error"/>