Skip to main content

LogSnag API Wrapper

Project description

LogSnag

LogSnag

Get notifications and track your project events.

Discord Documentation

Installation

pip3 install logsnag

Usage

Import Library

from logsnag import LogSnag

Initialize Client

logsnag = LogSnag(token='7f568d735724351757637b1dbf108e5', project="my-saas")

Publish Event

logsnag.track(
    channel="waitlist",
    event="User Joined",
    user_id="user_123",
    description="Email: john@doe.com",
    icon="🎉",
    tags={
      "source": "google",
    },
    notify=True
)

User Properties

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

Publish Insight

logsnag.insight.track(
    title='User Count',
    value=100,
    icon='👨',
)

Increment Insight

logsnag.insight.increment(
    title='User Count',
    value=1,
    icon='👨',
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logsnag-1.0.0b2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logsnag-1.0.0b2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file logsnag-1.0.0b2.tar.gz.

File metadata

  • Download URL: logsnag-1.0.0b2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.9

File hashes

Hashes for logsnag-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 89174947179cf2e76a346fa1a167e1d62cb0e0954125ed99302f13a91cbda628
MD5 d4227a0c05e8ad73d5032223ee0c5960
BLAKE2b-256 b5382a9e140ecc2a41d437653568e1dd190a0b6ea62738902abdc888ff53b727

See more details on using hashes here.

File details

Details for the file logsnag-1.0.0b2-py3-none-any.whl.

File metadata

  • Download URL: logsnag-1.0.0b2-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.9

File hashes

Hashes for logsnag-1.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 1b0632189166e4a8cbea2298d3d73c76f9a2c900f61a9915e5b916493071f528
MD5 555358ec299d307af8c3ead5c40374ed
BLAKE2b-256 c3fc5204d14990d2dcb80a2587886fc5106ac98e9972cb0961d20c736fdde356

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page