A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/serilog-contrib/serilog-sinks-teams below:

serilog-contrib/serilog-sinks-teams: A Serilog event sink that writes to Microsoft Teams

Serilog.Sinks.MicrosoftTeams

A Serilog event sink that writes to Microsoft Teams.

Package - Serilog.Sinks.MicrosoftTeams | Platforms - .NETStandard 1.1

You need to add an "Incoming Webhook" connector to your Teams channel and get it's URL. title is optional but can help your distinguish logs coming from different sources.

var log = new LoggerConfiguration()
    .WriteTo.MicrosoftTeams(webHookUri, title: title)
    .CreateLogger();

It is possible to configure the sink using Serilog.Settings.Configuration by specifying the table name and connection string in appsettings.json:

"Serilog": {
  "WriteTo": [
    {"Name": "MicrosoftTeams", "Args": {"webHookUri": "", "title": ""}}
  ]
}

JSON configuration must be enabled using ReadFrom.Configuration(); see the documentation of the JSON configuration package for details.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4