Plugins You can find out about all the publicly available Grails plugins.

Grails err-buddy Plugin

1 vote
Dependency:
compile "org.grails.plugins:errbuddy:1.4.2"

 Documentation  Source  Issues

Summary

errbudd.net grails plugin.

Installation

compile ':errbuddy:1.3.1'

Description

Usage

Get an account on https://errbuddy.net.

Add the plugin to you BuildConfig.groovy as described above.

After adding your errbuddy key to Config.groovy the plugin automaticly sends exceptions and error logs to errbuddy's API.

If you want to use deployment tracking just add

errbuddyService.postDeployment()
to the init method of your BootStrap.groovy. e.g.
if (!Environment.isDevelopmentMode()){
            try{
                errbuddyService.postDeployment()
            } catch (Exception ignore) {
                // we ignore that as we do not want to let the startup fail if something goes wronf posting the deployment
            }
        }

Configuration

grails {
    plugin {
        errbuddy {
            enabled = true // whether the plugin is enabled and the LogAppender is registered with the root logger
            apiKey = 'YOUR_API_KEY' // Your api key from errbuddy.net
            exceptionsOnly = false // whether to send more then just exceptions
            threshold = "ERROR" // if exceptionsOnly is false, this is the threshold 
            params {
                exclude = ['password', 'SPRING_SECURITY_CONTEXT', 'currentApplication', 'applications'] // which parameters to be excluded from sending
            }
            hostname {
                resolve = false // whether or not to automaticly lookup the servers hostname on startup
                name = 'app1.foo.bar' // if resolve is false use this
                prefix = 'app1'       // optional if resolve is true, append this before the resolved hostname
            }
        }
    }
}