Skiller9090 / Lucifer

A Powerful Penetration Tool For Automating Penetration Tasks Such As Local Privilege Escalation, Enumeration, Exfiltration and More... Use Or Build Automation Modules To Speed Up Your Cyber Security Life
Other
358 stars 76 forks source link

Setup Airbrake for your Python application #5

Closed Skiller9090 closed 4 years ago

Skiller9090 commented 4 years ago

Installation

Our Python error library (pybrake) requires Python 3.4+.

Python 2.7 users should follow the Python 2 instructions.

pip install -U pybrake

Configuration

(You can find your project ID and API key in your project's settings)

import pybrake

notifier = pybrake.Notifier(project_id=<Your project ID>,
                            project_key='<Your project API KEY>',
                            environment='production')

Send a test error

To test that you've installed Airbrake correctly, try triggering a test error.

try:
    raise ValueError('hello')
except Exception as err:
    notifier.notify(err)

Full documentation

For more information please visit our official GitHub repo.

Skiller9090 commented 4 years ago

Setup Complete