LogHive Mobile Push Notification of your events

Get push notifications from C#

As a developer, you know how important it is to catch errors and track events in your application. However, constantly monitoring logs and dashboards can be time-consuming and tedious.

When working on my own projects, I used to log error messages and events to files or send them to myself via email. However, constantly checking log files and managing my inbox became a hassle. That’s why I created LogHive, an event service that allows you to receive push notifications directly to your mobile device whenever an event is triggered.

In this article, I will describe how you can easily integrate LogHive into your C# project.

How it works

Loghive provides a simple REST API that you can use to push events and errors to the Loghive service. You can organize your events into projects and groups to keep them organized and easily searchable. Once an event is pushed to Loghive, it is processed and can viewed in the event stream or the dashboard.

Integration with C#

LogHive provides an SDK for C# that makes it easy to integrate the service into your application. You can download the SDK via NuGet (NuGet Package) and install it in your project. Then, all you need is a few lines of code to start pushing events to Loghive. For example, to push a new event, you can use the following code:

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

You can activate the push notification for your mobile devices by using the boolean value notification.

You can receive your API-Key here: API-Key.

With just a few lines of code, you can start receiving notifications for your application’s events and errors.

Receive Push Notifications

To receive push notifications, you simply need to install the LogHive Android app (Playstore) or use LogHive through the web application and allow notifications.

Add an element to your project dashboard

In addition to push notifications, you can display captured events in a dashboard with various elements. With just a few clicks, you can display the events already pushed in the dashboard.

As you can see, Loghive provides a simple and powerful solution for event notification that can help you stay on top of your application’s performance.

Latest Posts