HaemmerElectronics.SeppPenner.Serilog.Sinks.MicrosoftTeams
1.0.10
Prefix Reserved
See the version list below for details.
dotnet add package HaemmerElectronics.SeppPenner.Serilog.Sinks.MicrosoftTeams --version 1.0.10
NuGet\Install-Package HaemmerElectronics.SeppPenner.Serilog.Sinks.MicrosoftTeams -Version 1.0.10
<PackageReference Include="HaemmerElectronics.SeppPenner.Serilog.Sinks.MicrosoftTeams" Version="1.0.10" />
paket add HaemmerElectronics.SeppPenner.Serilog.Sinks.MicrosoftTeams --version 1.0.10
#r "nuget: HaemmerElectronics.SeppPenner.Serilog.Sinks.MicrosoftTeams, 1.0.10"
// Install HaemmerElectronics.SeppPenner.Serilog.Sinks.MicrosoftTeams as a Cake Addin #addin nuget:?package=HaemmerElectronics.SeppPenner.Serilog.Sinks.MicrosoftTeams&version=1.0.10 // Install HaemmerElectronics.SeppPenner.Serilog.Sinks.MicrosoftTeams as a Cake Tool #tool nuget:?package=HaemmerElectronics.SeppPenner.Serilog.Sinks.MicrosoftTeams&version=1.0.10
Serilog.Sinks.MicrosoftTeams
Serilog.Sinks.MicrosoftTeams is a library to save logging information from Serilog to Microsoft Teams. The assembly was written and tested in NetCore 3.1, .Net Framework 4.8 and .Net Standard 2.0.
Available for
- NetFramework 4.6
- NetFramework 4.6.2
- NetFramework 4.7
- NetFramework 4.7.2
- NetFramework 4.8
- NetStandard 2.0
- NetStandard 2.1
- NetCore 2.1
- NetCore 3.1
Net Core and Net Framework latest and LTS versions
- https://dotnet.microsoft.com/download/dotnet-framework
- https://dotnet.microsoft.com/download/dotnet-core
Basic usage:
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.
Check https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/connectors/connectors-using.
var logger = new LoggerConfiguration()
.WriteTo.MicrosoftTeams(webHookUri, title: title)
.CreateLogger();
The project can be found on nuget.
Configuration options:
|Parameter|Meaning|Example|Default value|
|-|-|-|-|
|webHookUri|The Microsoft teams weebhook uri.|"User ID=serilog;Password=serilog;Host=localhost;Port=5432;Database=Logs"
|None, is mandatory.|
|title|The title of the card.|"Some Message"
|None, but is optional.|
|period|The time to wait between checking for event batches.|period: new TimeSpan(0, 0, 20)
|00:00:05
|
|formatProvider|The IFormatProvider
to use. Supplies culture-specific formatting information. Check https://docs.microsoft.com/en-us/dotnet/api/system.iformatprovider?view=netframework-4.8.|`new CultureInfo("de-DE")|
null| |batchSizeLimit|The maximum number of events to include in a single batch.|
batchSizeLimit: 40|
30| |restrictedToMinimumLevel|The minimum level of the logging.|
restrictedToMinimumLevel: LogEventLevel.Verbose|
LogEventLevel.Verbose| |omitPropertiesSection|Indicates whether the properties section should be omitted or not.|
omitPropertiesSection: true|
false| |proxy|The proxy addresss used.|
proxy: "http://test.de/proxy"|
null`|
Further information:
This project is a fork of https://github.com/DixonDs/serilog-sinks-teams but is maintained. Do not hesitate to create issues or pull requests.
Change history
See the Changelog.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net46 is compatible. net461 was computed. net462 is compatible. net463 was computed. net47 is compatible. net471 was computed. net472 is compatible. net48 is compatible. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 2.1
- Newtonsoft.Json (>= 12.0.3)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.3.0)
- System.Net.Http (>= 4.3.4)
-
.NETCoreApp 3.1
- Newtonsoft.Json (>= 12.0.3)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.3.0)
- System.Net.Http (>= 4.3.4)
-
.NETFramework 4.6
- Newtonsoft.Json (>= 12.0.3)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.3.0)
- System.Net.Http (>= 4.3.4)
-
.NETFramework 4.6.2
- Newtonsoft.Json (>= 12.0.3)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.3.0)
- System.Net.Http (>= 4.3.4)
-
.NETFramework 4.7
- Newtonsoft.Json (>= 12.0.3)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.3.0)
- System.Net.Http (>= 4.3.4)
-
.NETFramework 4.7.2
- Newtonsoft.Json (>= 12.0.3)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.3.0)
- System.Net.Http (>= 4.3.4)
-
.NETFramework 4.8
- Newtonsoft.Json (>= 12.0.3)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.3.0)
- System.Net.Http (>= 4.3.4)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 12.0.3)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.3.0)
- System.Net.Http (>= 4.3.4)
-
.NETStandard 2.1
- Newtonsoft.Json (>= 12.0.3)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.3.0)
- System.Net.Http (>= 4.3.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
1.2.5 | 66,586 | 8/9/2021 | |
1.2.4 | 27,044 | 7/25/2021 | |
1.2.3 | 6,070 | 6/4/2021 | |
1.2.2 | 19,224 | 4/29/2021 | |
1.2.1 | 17,155 | 2/21/2021 | |
1.2.0 | 13,841 | 1/4/2021 | |
1.1.1 | 12,159 | 11/19/2020 | |
1.1.0 | 408 | 11/19/2020 | |
1.0.11 | 19,980 | 7/29/2020 | |
1.0.10 | 671 | 7/25/2020 | |
1.0.9 | 1,005 | 7/15/2020 | |
1.0.8 | 23,646 | 6/5/2020 | |
1.0.7.1 | 528 | 6/4/2020 | |
1.0.7 | 9,890 | 5/10/2020 | |
1.0.6 | 13,815 | 3/26/2020 | |
1.0.5 | 10,664 | 11/8/2019 | |
1.0.3.2 | 644 | 11/4/2019 | |
1.0.3.1 | 1,058 | 10/22/2019 | |
1.0.3 | 895 | 10/15/2019 | |
1.0.2.1 | 2,492 | 6/24/2019 | |
1.0.2 | 570 | 6/23/2019 | |
1.0.1 | 586 | 6/21/2019 | |
1.0.0 | 599 | 6/21/2019 |
Version 1.0.10.0 (2020-07-25): Fixed a logical error with the messagesToSend list (Thanks to [mahdiman](https://github.com/mahdiman)).