This c# libary is a SDK for the LogHive event and log service. LogHive is a log and event service specifically 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
Integration is very easy, a simple REST command is all that's needed to store your event in our database. This libary packs the http client into a nuget package. So you can push an event with just two lines of code.
To use this API you need an API key. You can register for a free API key at https://app.loghive.app.
A full documentation is available under https://docs.loghive.app/.
With the following code, you init the http client with your personal API key:
var logger = new LogHiveApi("your-api-key");
var notification = false;
var response = await logger.AddEventAsync("yourprojectname", "yourgroupname", "your-event-name", "descripton", notification);
var response = await logger.AddInsightAsync("yourprojectname", "insightname", 10);
var response = await logger.SetSystemOnlineAsync("yourprojectname", "systemname");
var response = await logger.SetSystemOfflineAsync("yourprojectname", "systemname");