Skip to main content

Official wrapper over the dashlog.app api

Project description

Dashlog

Official wrapper over the dashlog.app api

pip install dashlog
from dashlog import Dashlog

dash = Dashlog('<Your-API-Key-here>')

response = dash.log(
    project='MyProject',  # string - required
    channel='Users',      # string - required

    title='New User',                           # string - required
    description='John Doe created an account',  # string - optionnal

    data={                            # dict - optionnal
        'username': '@johndoe',          # Values can be
        'email': 'john.doe@dashlog.app'  # strings,
        'age': 32,                       # numbers,
        'premium': True                  # or booleans
    }

    notify=True,  # boolean - optionnal - send log by email if True
)

print(response.status)  # 200
print(response.json())  # {'status': 200, 'message': 'log added successfully'}

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

dashlog-0.0.1.tar.gz (6.5 MB view hashes)

Uploaded Source

Built Distribution

dashlog-0.0.1-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

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