Skip to content

LogHive is a log and event service specifically designed for software applications such as apps, websites, or services.

License

Notifications You must be signed in to change notification settings

loghive/LogHive.SDK.CSharp

Repository files navigation

LogHive.SDK.CSharp

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.

Checkout the NuGet Package: NuGet

Licence: MIT

Compatibility

The library is written in: .NET Version .NET Version

Contents

  1. General
  2. Requirements
  3. Documentation
  4. Usage

General

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.

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/.

Usage

With the following code, you init the http client with your personal API key:

var logger = new LogHiveApi("your-api-key");

Push an Event

var notification = false;
var response = await logger.AddEventAsync("yourprojectname", "yourgroupname", "your-event-name", "descripton", notification);

Set a Insight

var response = await logger.AddInsightAsync("yourprojectname", "insightname", 10);

Set Online State

var response = await logger.SetSystemOnlineAsync("yourprojectname", "systemname");
var response = await logger.SetSystemOfflineAsync("yourprojectname", "systemname");

About

LogHive is a log and event service specifically designed for software applications such as apps, websites, or services.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages