Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

logsnag

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logsnag

LogSnag Client

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1.1K
-67.37%
Maintainers
1
Weekly downloads
 
Created
Source
LogSnag

LogSnag

Get notifications and track your project events.

NPM Version Discord Documentation

Installation

npm install --save logsnag

Usage

Import Library

import { LogSnag } from 'logsnag';

Initialize Client

const logsnag = new LogSnag({ 
  token: '7f568d735724351757637b1dbf108e5',
  project: 'my-saas'
});

Track Event

logsnag.track({
    channel: "waitlist",
    event: "User Joined",
    icon: "🎉",
    user_id: "user_123",
    tags: {
      source: "google",
    },
    notify: true
})

User Properties

logsnag.identify({
    user_id: "user_123",
    properties: {
      name: "John Doe",
      email: "john@doe.com",
      plan: "premium",
    }
})

Track Insight

logsnag.insight.track({
    title: "User Count",
    value: "100",
    icon: "👨",
})

Increment Insight

logsnag.insight.increment({
    title: "User Count",
    value: 1,
    icon: "👨",
})

Keywords

logsnag

FAQs

Package last updated on 30 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts