A Fyipe package that tracks error event and send logs from your applications to your fyipe dashboard.
Project description
A fyipe sdk for application logger that can be used to send logs about your applications created on your fypie dashboard which can also used for error tracking
Install
To install:
pip install fyipe-sdk
Overview
The usual way to use fyipe_sdk application log is something like below:
from fyipe_sdk import logger
# constructor
fyipeLogger = logger.FyipeLogger(
'API_URL', # https://fyipe.com/api
'APPLICATION_LOG_ID',
'APPLICATION_LOG_KEY'
)
# Sending a string log to the server
item = 'This is a simple log'
response = fyipeLogger.log(item)
print(response)
# Sending an object log to the server
item = {
'user': 'Test User',
'page': 'Landing Page'
}
response = fyipeLogger.log(item)
print(response)
The usual way to use fyipe_sdk error tracker is something like below:
from fyipe_sdk import tracker
# set up tracking configurations
options = {
"maxTimeline": 50,
"captureCodeSnippet": True
}
# constructor
fyipeTracker = tracker.FyipeTracker(
'API_URL', # https://fyipe.com/api
'ERROR_TRACKER_ID',
'ERROR_TRACKER_KEY',
options
)
# capturing error exception manually and sent to your fyipe dashboard
try:
# your code logic
result = 5/0 # Should throw a division by zero error
catch Exception as error:
fyipeTracker.captureException(error)
Documentation
Please, read documentation here :
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
fyipe_sdk-3.0.13403.tar.gz
(7.2 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 fyipe_sdk-3.0.13403.tar.gz.
File metadata
- Download URL: fyipe_sdk-3.0.13403.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c5110aa09392baf776350c78c9f6abe88fb367fc810601bf86948fd3cb0d467
|
|
| MD5 |
d33cabab0124a8fcb1c90a6f9d94a814
|
|
| BLAKE2b-256 |
354f02302dad8f38313ac6f44a303fc89857bce9861b096f3d51322b1f2bf723
|
File details
Details for the file fyipe_sdk-3.0.13403-py3-none-any.whl.
File metadata
- Download URL: fyipe_sdk-3.0.13403-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81c36d05fb71121d41d58a782fd40f05006a4c50a9eaff245b9565339bcdfdba
|
|
| MD5 |
4aef4ccf915fcba13ef694c797eeaad5
|
|
| BLAKE2b-256 |
8dbc8a884752092a7602390e6a60c806f1cf2bdd4edd1ba55e370140342f256a
|