0.1.3 • Published 1 year ago

loghive v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

LogHive.SDK.Javascript

This javascript 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 NPM: npm

Licence: MIT

Contents

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

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

Installation

npm install --save loghive

Import Library

import { LogHive } from 'loghive';

Initialize Client

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

const logging = new LogHive({ 
  key: 'your-personal-api-key',
  project: 'yourprojectname'
});

Publish Event

logging.addEvent({
    group: "yourgroupname",
    event: "your-event-name",
    description: "descripton",
    notify: true
});

Publish Insight

logging.addInsight({
  insight: "your-insight-name",
  value: 100
});

Online/Offline State

logging.setSystemOnline({
  system: "your-system-name"
});

logging.setSystemOffline({
  system: "your-system-name"
});
0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago