directory
Version:
v1.6.0
Opens a new window with list of versions in this module.
Published: Nov 12, 2020
License: MIT
Opens a new window with license information.
README
¶
Example Revel application
This package contains an example Revel application, with Bugsnag configured.
The key files for integrating Bugsnag are:
app/init.go
- Sets up the Bugsnag filter.
app/controllers/app.go
- notifies about an handled error and an unhandled panic
conf/app.conf
- configures Bugsnag, in particular the API key
Run the example
- Change the API key in
app.conf
to a project you've created in Bugsnag.
- Inside
bugsnag-go/examples/revelapp
do:
revel run
- The application is now running. You can now visit
http://localhost:9001/unhandled - to trigger an unhandled panic
http://localhost:9001/handled - to trigger a handled error
- You should now see events for these exceptions in your Bugsnag dashboard.
Directories
¶
Click to show internal directories.
Click to hide internal directories.