1.1.4 • Published 3 years ago
obsolog-js v1.1.4
obsolog-js
This is the package of Obsolog, the Dead-Simple Monitoring Tool!
Installation
Using npm:
npm install obsolog-jsUsing yarn:
yarn add obosolog-jsUsing pnpm
pnpm add obsolog-jsUsage
After creating and storing your API Key, add it to your .env file, create your Obsolog client:
const obsolog = new Obsolog({
token: 'TOKEN_HERE'
})Then, track your events like this:
obs.trackEvent({
name: 'Event name',
description: 'Description',
user: 'some-user-id',
channel: 'auth.user'
})