Skip to content

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.

Notifications You must be signed in to change notification settings

loghive/LogHive.SDK.Javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
});

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published