acra-go
acra-go copied to clipboard
Backend for Application Crash Reports for Android (ACRA)
acra-go
Backend for Application Crash Reports for Android - ACRA.
Installation
go install -v github.com/gen2brain/acra-go/acra-go
This will install server in $GOPATH/bin/acra-go.
Building
The build.sh script should configure your system on Linux and build the leveldb version of acra-go in bin/acra-go.
Download
Binary for linux/amd64 is available:
Setup
Server
Server by default listens on port 55000, you can bind it to other port like this:
acra-go -bind-addr :80
Client
ACRA should send reports to http://example.com:55000/send. Example annotation of your Android Application class:
@ReportsCrashes(formUri = "http://example.com:55000/send",
formUriBasicAuthLogin = "yourusername", // optional
formUriBasicAuthPassword = "y0uRpa$$w0rd", // optional
reportType = org.acra.sender.HttpSender.Type.JSON, // recommended
mode = ReportingInteractionMode.TOAST,
resToastText = R.string.crash_toast_text)
public class MyApplication extends Application {
...
}
Usage
Usage of acra-go:
-bind-addr string
Bind address (default ":55000")
-database-dir string
Path to database directory (default ".")
-htpasswd-backend string
Path to htpasswd file, if empty backend auth is disabled
-htpasswd-frontend string
Path to htpasswd file, if empty frontend auth is disabled
-read-timeout int
Read timeout (seconds) (default 5)
-write-timeout int
Write timeout (seconds) (default 15)
Pages
/: dashboard of the crashes/send: accepts POST and PUT requests from you app and stores report in db/view: view all reports, returns json/view?id=9823648d-20f6-4663-b8b5-f66f9fc97f81: view a single report, identified by report id