Exceptional Documentation

Storage: MySQL

Installation

Install for MySQL is as follows:

  1. Install the StackExchange.Exceptional.MySQL package.
  2. Run the SQL to create the Exceptions table.
  3. Configure the application to use this error store.

Coniguration

Web.config example:

<ErrorStore type="MySQL" connectionString="Data Source=.;Initial Catalog=Exceptions;Uid=Exceptions;Pwd=iloveerrors" />

ASP.NET Core JSON example:

{
  "Exceptional": {
    "Store": {
      "ApplicationName": "Samples (ASP.NET Core)",
      "Type": "MySQL",
      "ConnectionString": "Data Source=.;Initial Catalog=Exceptions;Uid=Exceptions;Pwd=iloveerrors"
    }
  }
}

C# Code example:

Exceptional.Configure("My Application", new MySQLErrorStore("Data Source=.;Initial Catalog=Exceptions;Uid=Exceptions;Pwd=iloveerrors"));