Serilog.Sinks.LogHive
1.0.0
See the version list below for details.
dotnet add package Serilog.Sinks.LogHive --version 1.0.0
NuGet\Install-Package Serilog.Sinks.LogHive -Version 1.0.0
<PackageReference Include="Serilog.Sinks.LogHive" Version="1.0.0" />
paket add Serilog.Sinks.LogHive --version 1.0.0
#r "nuget: Serilog.Sinks.LogHive, 1.0.0"
// Install Serilog.Sinks.LogHive as a Cake Addin #addin nuget:?package=Serilog.Sinks.LogHive&version=1.0.0 // Install Serilog.Sinks.LogHive as a Cake Tool #tool nuget:?package=Serilog.Sinks.LogHive&version=1.0.0
Serilog.Sinks.LogHive
This C# library is a sink for the Serilog Logging Framework. With this extension, all log events that occur are automatically transmitted to the event and log service LogHive. LogHive is a log and events service specially designed for software applications such as apps, websites or services. With LogHive, push notifications can be sent to the web browser or to a mobile device, or the log messages can be analyzed in a separate dashboard.
Licence: MIT
Compatibility
Contents
General
To ensure that the Serilog extension is found, you should include the namespace Serilog.Sinks.LogHive in your Usings section.
"Serilog": {
"Using": [
"Serilog",
"Serilog.Sinks.Console",
"Serilog.Sinks.LogHive"
],
"MinimumLevel": {
"Default": "Warning"
},
"WriteTo": [
{
"Name": "Console"
},
{
"Name": "LogHiveSink",
"Args": {
"ApiKey": "your-api-key",
"ProjectName": "yourprojectname",
"GroupName": "yourgroupname",
"RestrictedToMinimumLevel": "Error",
"MinimumPushNotificationLevel": "Error"
}
}
]
}
ApiKey: your personal api key ProjectName: your LogHive project name GroupName: a group name for the events (e.g. bugs) RestrictedToMinimumLevel: minimum Log Level to push the event to LogHive MinimumPushNotificationLevel: minimum Log Level to push a notification
You can also instantiate logging directly through the code:
var log = new LoggerConfiguration()
.MinimumLevel.Information()
.WriteTo.LogHiveSink("your-api-key", "yourprojectname", "yourgroupname",
LogEventLevel.Information, LogEventLevel.Information)
.CreateLogger();
var position = new { Latitude = 25, Longitude = 134 };
var elapsedMs = 34;
log.Information("Processed {@Position} in {Elapsed:000} ms.", position, elapsedMs);
Requirements
To use this API you need an API key. You can register for a free API key at https://app.loghive.app.
Documentation
A full documentation is available under https://docs.loghive.app/.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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 | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.