DOCUMENTATION

Collect Breadcrumbs

Logify Alert collects a list of actions ("Breadcrumbs") that precede application crash events. Examples of breadcrumbs include text input, clicks, network requests, and changes to an application's state. This list of breadcrumbs contain all the steps you'll need to reproduce and pinpoint the underlying cause of an application crash event.

These Breadcrumbs are automatically displayed on the Report Details page.

Note: Breadcrumbs can be only collected for WinForms, ASP.NET, WPF or JavaScript applications.

Logify Alert can automatically collect breadcrumbs for all new reports, or you can add the breadcrumbs manually. Refer to the corresponding section below for more information.

How to Automatically Collect Breadcrumbs

Set the client's CollectBreadcrumbs property to true to automatically collect breadcrumbs for the corresponding platform's reports.

The total size of Breadcrumbs is limited to 1000 instances (or 3MB) per crash report. The BreadcrumbsMaxCount property allows you to change the maximum allowed size of attached breadcrumbs.

The code snippet below allows you to auto collect breadcrumbs for your WinForms applications.

using DevExpress.Logify.Win; static class Program {   [STAThread]   static void Main() {     // ...     LogifyAlert.Instance.CollectBreadcrumbs = true;     LogifyAlert.Instance.BreadcrumbsMaxCount = 2000;     LogifyAlert.Instance.StartExceptionsHandling();   } }

How to Manually Collect Breadcrumbs

You should add the following information to the client's Breadcrumbs collection to create a breadcrumb manually:

  • DateTime - an event's date/time
  • Event - the DevExpress.Logify.Core.BreadcrumbEvent.Manual object
  • Message - a string that describes the breadcrumb

The total size of Breadcrumbs is limited to 1000 instances (or 3MB) per crash report. The BreadcrumbsMaxCount property allows you to change the maximum allowed size of attached breadcrumbs.

The code snippet below allows you to collect breadcrumbs for your WinForms applications manually.

using DevExpress.Logify.Core; using DevExpress.Logify.Win; LogifyAlert.Instance.Breadcrumbs.Add(new Breadcrumb() {   DateTime = DateTime.UtcNow,   Event = BreadcrumbEvent.Manual,   Message = "A manually added breadcrumb" }); LogifyAlert.Instance.BreadcrumbsMaxCount = 2000;

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