Storage: MySQL
Installation
Install for MySQL is as follows:
- Install the
StackExchange.Exceptional.MySQL
package. - Run the SQL to create the Exceptions table.
- 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"));