LogSnag API Wrapper
Project description
Installation
pip3 install logsnag
Usage
Import Library
from logsnag import LogSnag
Initialize Client
logsnag = LogSnag('7f568d735724351757637b1dbf108e5', "my-saas")
Publish Event
logsnag.publish(
channel="waitlist",
event="User Joined",
description="Email: john@doe.com",
icon="🎉",
tags={
"email": "john@doe.com",
"user-id": "uid-12"
},
notify=True
)
Publish Insight
logsnag.insight(
title='User Count',
value=100,
icon='👨',
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
logsnag-0.1.1.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file logsnag-0.1.1.tar.gz.
File metadata
- Download URL: logsnag-0.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d3ba21a5470b9e8acbb59b83e810bcdc4741596243d7b0908f34fad295f9a16
|
|
| MD5 |
3228bdc01773ff136bf9ae9f9e5429c7
|
|
| BLAKE2b-256 |
c1624cd0dd09d256d911ea5e383623c88f96cfe8476196b6cb0288d7d3bb891d
|
File details
Details for the file logsnag-0.1.1-py3-none-any.whl.
File metadata
- Download URL: logsnag-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2bb79fb09dfa509ddfbbb2b73c7224c573124fa764e5eb993756119e510efd8
|
|
| MD5 |
2afab2b6958d5bc3a5579cf59ef9df44
|
|
| BLAKE2b-256 |
4c5a5e64dba13ff976e0ab0dc69e1f605a5101ce874090f8297389b0fcfb44b0
|