revel_0.21.0/

directory
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2021 License: MIT

README

Example Revel application

This package contains an example Revel application, with Bugsnag configured.

The key files for integrating Bugsnag are:

  1. app/init.go - Sets up the Bugsnag filter.
  2. app/controllers/app.go - notifies about an handled error and an unhandled panic
  3. conf/app.conf - configures Bugsnag, in particular the API key

Run the example

  1. Install the revel command using go get github.com/revel/cmd/revel
  2. Change the API key in app.conf to a project you've created in Bugsnag.
  3. Inside the example app folder do:
    revel run
    
  4. 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
    
  5. You should now see events for these exceptions in your Bugsnag dashboard.

Directories

Path Synopsis
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL