Novi.ElmahToSlack
1.1.0.26913
dotnet add package Novi.ElmahToSlack --version 1.1.0.26913
NuGet\Install-Package Novi.ElmahToSlack -Version 1.1.0.26913
<PackageReference Include="Novi.ElmahToSlack" Version="1.1.0.26913" />
paket add Novi.ElmahToSlack --version 1.1.0.26913
#r "nuget: Novi.ElmahToSlack, 1.1.0.26913"
// Install Novi.ElmahToSlack as a Cake Addin
#addin nuget:?package=Novi.ElmahToSlack&version=1.1.0.26913
// Install Novi.ElmahToSlack as a Cake Tool
#tool nuget:?package=Novi.ElmahToSlack&version=1.1.0.26913
Novi.ElmahToSlack
A simple extension to elmah to send error notifications to Slack after writing to SQL Server.
What's this about?
We decided we wanted to send ourselves Slack messages whenever our friend Elmah wrote to the SQL database. This little derivative will do just that.
Configuration
Typically, your elmah configuration looks something like this:
<elmah>
<errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="DefaultConnection" />
</elmah>
To use this version, you'll need a few more attributes on the errorLog element, and specify this assembly instead:
<elmah>
<errorLog type="Novi.ElmahToSlack.SqlPlusSlackErrorLog, Novi.ElmahToSlack"
connectionStringName="YourConnectionName"
webHookUri="https://hooks.slack.com/services/YourWebHookEndpoint"
userName="The user or bot you want to post under"
channel="the #channel to post to" />
</elmah>
Check the Slack documentation for setting up a web hook.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- elmah (>= 1.2.2)
- Newtonsoft.Json (>= 9.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.1.0.26913 | 8,063 | 12/13/2017 |
1.0.1.27228 | 3,343 | 1/24/2017 |
1.0.0.17282 | 2,610 | 1/20/2017 |
Initial release.