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.
Branch: master
Clone or download
Latest commit fb37eaa May 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.npmignore
.prettierrc
README.md
package.json
tsconfig.json
tslint.json
yarn.lock

README.md

🔔 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
You can’t perform that action at this time.