We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the javabrake dependency through your IDE or directly to your pom.xml file:
pom.xml
<dependency> <groupId>io.airbrake</groupId> <artifactId>javabrake</artifactId> <version>0.2.3</version> </dependency>
Add javabrake to your Gradle dependencies:
compile 'io.airbrake:javabrake:0.2.3'
Add javabrake to your Ivy dependencies:
<dependency org='io.airbrake' name='javabrake' rev='0.2.3'> <artifact name='javabrake' ext='pom'></artifact> </dependency>
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)
// Import the library: import io.airbrake.javabrake.Notifier; public class ExampleApp { public static void main(String[] args) { // Copy configuration lines: int projectId = <Your project ID>; String projectKey = "<Your project API KEY>"; Notifier notifier = new Notifier(projectId, projectKey); } }
Example of reporting a caught exception:
try { int i = 1/0; } catch (ArithmeticException e) { notifier.report(e); }
Visit our official GitHub repo for advanced information and integrations like log4j, log4j2, and logback.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Installation
Install option 1: Maven
Add the javabrake dependency through your IDE or directly to your
pom.xml
file:Install option 2: Gradle
Add javabrake to your Gradle dependencies:
Install option 3: Ivy
Add javabrake to your Ivy dependencies:
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)
Example of reporting a caught exception:
Full documentation
Visit our official GitHub repo for advanced information and integrations like log4j, log4j2, and logback.
The text was updated successfully, but these errors were encountered: