Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The official package for Pling. Pling is a cloud based logging service for aggregating, grouping and displaying logs from across your entire stack.

Notifications You must be signed in to change notification settings

driescroons/pling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔔 Pling

The official package for Pling. Pling is a cloud based logging service for aggregating, grouping and displaying logs from across your entire stack - frontend / backend / iot devices / games / ... or maybe just so you can track the oxygen in the office! It is the easiest way to keep colleagues, clients, stakeholders and yourself in the loop of what's going.

This package is a simple helper so you can easily integrate the Pling API into your existing applications. I've provided an example with create-react-app and a basic express app.

NPM

👉 Implementation

Implemeting it is quite easy. First install it:

yarn add pling

🤖 Node

Importing the package:

const notify = require("pling");

In Typescript:

import * as notify from "pling";

Copy and paste the following where you'd like to log something:

await notify({
    key: process.env.PLING_API_KEY,
    title: "Pling from the package!",
    description: "👋 👋 👋 👋"
});

Please make sure to set your PLING_API_KEY environment variable. In Node, you can do so by doing the following:

process.env[PLING_API_KEY] = "YOUR_API_KEY";

🤖 React / Vue / Angular

Importing the package:

import * as notify from "pling";

Copy and paste the following where you'd like to log something:

 await notify({
    key: process.env.PLING_API_KEY,
    title: "Pling from the package!",
    description: "👋 👋 👋 👋"
  });

Please make sure to set your PLING_API_KEY environment variable:

In create react app, you can do so by creating a .env file in the root and specifying the following. Make sure to change the PLING_API_KEY to REACT_APP_PLING_API_KEY:

REACT_APP_PLING_API_KEY=YOUR_API_KEY_HERE

About

The official package for Pling. Pling is a cloud based logging service for aggregating, grouping and displaying logs from across your entire stack.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published