DOCUMENTATION

UWP

See the basic setup steps below to get started with the Logify Alert service:


The following additional step may be required, based on your application deployment strategy:

Generate an API Key

The Logify Alert service uses unique identifiers – API keys – to register and monitor individual applications. You will use this key later when creating an instance of Logify Alert client in code.

  1. Log in to the Logify Alert website: logify.devexpress.com.

  2. Switch to the Applications tab and click Create New Application.

  3. Specify the application name and description, then click Create.

  4. The Applications tab will now display a new entry with an auto-generated API key.

Send Reports to Logify Alert

This section explains how to modify your UWP application so that it reports unhandled exceptions to the Logify Alert service.

Note: Set the minimum version of Windows 10 that your application supports to Build 16299 (Fall Creators Update, version 1709).

Add the Logify Alert Client to Your Project

Select Tools | NuGet Package Manager | Package Manager Console in the Visual Studio main menu and execute the following command:

Install-Package Logify.Alert.UWP

Send Reports Automatically

In the App.xaml.cs file, set up the Logify Alert client and call its StartExceptionsHandling() method before InitializeComponent() to automatically intercept all unhandled exceptions and send the corresponding crash reports to Logify Alert.

using DevExpress.Logify.UWP; LogifyAlert client = LogifyAlert.Instance; client.ApiKey = "SPECIFY_YOUR_API_KEY_HERE"; client.StartExceptionsHandling();

Send Reports Manually

Use the following code to catch exceptions and send reports manually.

using DevExpress.Logify.UWP; try {   // Some code } catch (Exception ex){   LogifyAlert client = LogifyAlert.Instance;   client.ApiKey = "SPECIFY_YOUR_API_KEY_HERE";   client.Send(ex); }

Rebuild and Run Your Application

Once your updated application has been redeployed, log in to logify.devexpress.com to review and process incoming reports.

Manual Application Deployment

Skip this step if you are using Visual Studio’s integrated application deployment mechanism. Since you have added Logify Alert client to the project using NuGet, all necessary DLLs will automatically be deployed.

If you are not using Visual Studio’s deployment mechanism, make sure to add the following assemblies to your project’s distribution:

  • Logify.Alert.Core.dll
  • Logify.Alert.UWP.dll

Terms of use Copyright © 2016-2019 Developer Express Inc.