Chat now
ASP.NET Core

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

Install-Package Logify.Alert.Web

Add the LogifyAlert section to the root level of your application's appsettings.json file:

{
  "LogifyAlert": {
      "apiKey": "SPECIFY_YOUR_API_KEY_HERE"
  }
}

In the application's Startup.cs file, add the LogifyAlert initialization in the Configure method after the app.UseExceptionHandler or app.UseDeveloperExceptionPage method call depending on your project type (MVC, Razor Pages or WebApi), and before the app.UseMvc method call, if any.

using DevExpress.Logify.Web;

public void Configure(IApplicationBuilder app, IHostingEnvironment env) {
    if (env.IsDevelopment())
        app.UseDeveloperExceptionPage();
    else
        app.UseExceptionHandler("/Home/Error");

    app.UseLogifyAlert(Configuration.GetSection("LogifyAlert"));
}
Recompile, and that’s it! Your application is ready to report all unexpected crashes to DevExpress Logify.
Refer to our documentation for more information.
.NET Core Console

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

Install-Package Logify.Alert.Console

Add the following code at the beginning of the Main() method in the Program.cs file to automatically intercept all unhandled exceptions and send the corresponding crash reports to Logify:

using DevExpress.Logify.Console;

LogifyAlert client = LogifyAlert.Instance;
client.ApiKey = "SPECIFY_YOUR_API_KEY_HERE";
client.StartExceptionsHandling();
Recompile, and that’s it! Your application is ready to report all unexpected crashes to DevExpress Logify.
Refer to our Documentation for more information.