DarioDiGulio / DarioDiGulio/Sudoku_Java
Setup Airbrake for your Java application
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### **Installation**
#### Install option 1: Maven
Add the javabrake dependency through your IDE or directly to your `pom.xml` file:
```xml
io.airbrake
javabrake
0.1.6
```
#### Install option 2: Gradle
Add javabrake to your Gradle dependencies:
```
compile 'io.airbrake:javabrake:0.1.6'
```
#### Install option 3: Ivy
Add javabrake to your Ivy dependencies:
```xml
```
### **Configuration**
Import the javabrake library and copy the three configuration lines into your
app to send all uncaught exceptions to Airbrake:
(You can find your project ID and API key in your [project's settings](https://airbrake.io/projects/279229/edit))
```java
// Import the library:
import io.airbrake.javabrake.Notifier;
public class ExampleApp {
public static void main(String[] args) {
// Copy configuration lines:
int projectId = ;
String projectKey = "";
Notifier notifier = new Notifier(projectId, projectKey);
}
}
```
Example of reporting a caught exception:
```java
try {
int i = 1/0;
} catch (ArithmeticException e) {
notifier.report(e);
}
```
### **Full documentation**
Visit our official GitHub repo for advanced information and integrations like log4j, log4j2, and logback.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.