In the pom.xml file, do the following:
In the dependencies section, declare the logify-alert-java library dependency:
<dependency>
<groupId>com.devexpress.logify</groupId>
<artifactId>logify-alert-java</artifactId>
<version>1.0.2</version>
</dependency>
In the repositories section, declare the Logify Alert's maven repository:
<repository>
<id>any-name-or-id</id>
<url>https://github.com/DevExpress/Logify.Alert.Clients/raw/maven </url>
</repository>
In the build.gradle file, do the following:
In the dependencies section, declare the logify-alert-java library dependency:
compile "com.devexpress.logify:logify-alert-java:1.0.2"
In the repositories section, declare the Logify Alert's maven repository:
maven {
url "https://github.com/DevExpress/Logify.Alert.Clients/raw/maven"
}
import com.devexpress.logify.alert.java.LogifyAlert;
LogifyAlert client = LogifyAlert.getInstance();
client.setApiKey("YOUR_API_KEY");
client.startExceptionsHandling();