HaemmerElectronics.SeppPenner.Serilog.Sinks.Telegram
1.0.1
Prefix Reserved
See the version list below for details.
dotnet add package HaemmerElectronics.SeppPenner.Serilog.Sinks.Telegram --version 1.0.1
NuGet\Install-Package HaemmerElectronics.SeppPenner.Serilog.Sinks.Telegram -Version 1.0.1
<PackageReference Include="HaemmerElectronics.SeppPenner.Serilog.Sinks.Telegram" Version="1.0.1" />
paket add HaemmerElectronics.SeppPenner.Serilog.Sinks.Telegram --version 1.0.1
#r "nuget: HaemmerElectronics.SeppPenner.Serilog.Sinks.Telegram, 1.0.1"
// Install HaemmerElectronics.SeppPenner.Serilog.Sinks.Telegram as a Cake Addin #addin nuget:?package=HaemmerElectronics.SeppPenner.Serilog.Sinks.Telegram&version=1.0.1 // Install HaemmerElectronics.SeppPenner.Serilog.Sinks.Telegram as a Cake Tool #tool nuget:?package=HaemmerElectronics.SeppPenner.Serilog.Sinks.Telegram&version=1.0.1
Serilog.Sinks.Telegram
Serilog.Sinks.Telegram is a library to save logging information from Serilog to Telegram. The assembly was written and tested in .Net Framework 4.8 and .Net Standard 2.0.
Available for
- NetFramework 4.5
- NetFramework 4.6
- NetFramework 4.6.2
- NetFramework 4.7
- NetFramework 4.7.2
- NetFramework 4.8
- NetStandard 2.0
Basic usage:
var logger = new LoggerConfiguration()
.WriteTo.Telegram("botToken", "chatId")
.CreateLogger();
The project can be found on nuget.
Configuration options:
|Parameter|Meaning|Example|Default value|
|-|-|-|-|
|botToken|The Telegram bot token.|"123151488:AAgshf4r373rffsdfOfsdzgfwezfzqwfr7zewE"
|None, is mandatory.|
|chatId|The Telegram chat id.|"12345"
|None, is mandatory.|
|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`|
Further information
This sink is basically the same as https://github.com/oxozle/serilog-sinks-telegram but is maintained and provides badging of events.
You need to get a bot API token following https://core.telegram.org/api#bot-api.
Change history
- Version 1.0.0.1 (2019-06-24) : Added option to only show from and to dates when the dates are not equal.
- Version 1.0.0.0 (2019-06-23) : 1.0 release.
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 was computed. netcoreapp2.2 is compatible. netcoreapp3.0 is compatible. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. 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.2
- Newtonsoft.Json (>= 12.0.2)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.2.0)
- System.Net.Http (>= 4.3.4)
-
.NETCoreApp 3.0
- Newtonsoft.Json (>= 12.0.2)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.2.0)
- System.Net.Http (>= 4.3.4)
-
.NETFramework 4.5
- Newtonsoft.Json (>= 12.0.2)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.2.0)
- System.Net.Http (>= 4.3.4)
-
.NETFramework 4.6
- Newtonsoft.Json (>= 12.0.2)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.2.0)
- System.Net.Http (>= 4.3.4)
-
.NETFramework 4.6.2
- Newtonsoft.Json (>= 12.0.2)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.2.0)
- System.Net.Http (>= 4.3.4)
-
.NETFramework 4.7
- Newtonsoft.Json (>= 12.0.2)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.2.0)
- System.Net.Http (>= 4.3.4)
-
.NETFramework 4.7.2
- Newtonsoft.Json (>= 12.0.2)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.2.0)
- System.Net.Http (>= 4.3.4)
-
.NETFramework 4.8
- Newtonsoft.Json (>= 12.0.2)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.2.0)
- System.Net.Http (>= 4.3.4)
-
.NETStandard 2.0
- NETStandard.Library (>= 2.0.0)
- Newtonsoft.Json (>= 12.0.2)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.2.0)
- System.Net.Http (>= 4.3.4)
-
.NETStandard 2.1
- NETStandard.Library (>= 2.1.0)
- Newtonsoft.Json (>= 12.0.2)
- Serilog (>= 2.9.0)
- Serilog.Sinks.PeriodicBatching (>= 2.2.0)
- System.Net.Http (>= 4.3.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on HaemmerElectronics.SeppPenner.Serilog.Sinks.Telegram:
Package | Downloads |
---|---|
FEBTW.SignerService.Core
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
1.0.16 | 1,430 | 8/29/2021 | |
1.0.15 | 1,043 | 8/17/2021 | |
1.0.14 | 360 | 8/9/2021 | |
1.0.13 | 404 | 7/25/2021 | |
1.0.12 | 498 | 6/4/2021 | |
1.0.11 | 1,865 | 5/10/2021 | |
1.0.10 | 708 | 4/21/2021 | |
1.0.9 | 958 | 2/21/2021 | |
1.0.8 | 457 | 1/28/2021 | |
1.0.7 | 892 | 1/4/2021 | |
1.0.6 | 493 | 1/3/2021 | |
1.0.5 | 426 | 1/3/2021 | |
1.0.4 | 1,420 | 9/29/2020 | |
1.0.3 | 1,876 | 6/5/2020 | |
1.0.2 | 4,015 | 5/10/2020 | |
1.0.1 | 4,392 | 11/8/2019 | |
1.0.0.1 | 648 | 6/24/2019 | |
1.0.0 | 560 | 6/23/2019 |
Version 1.0.1.0 (2019-11-08): Updated nuget packages.