DDev.Tooling.LoggerExtensions.Textlocal
1.0.0
dotnet add package DDev.Tooling.LoggerExtensions.Textlocal --version 1.0.0
NuGet\Install-Package DDev.Tooling.LoggerExtensions.Textlocal -Version 1.0.0
<PackageReference Include="DDev.Tooling.LoggerExtensions.Textlocal" Version="1.0.0" />
paket add DDev.Tooling.LoggerExtensions.Textlocal --version 1.0.0
#r "nuget: DDev.Tooling.LoggerExtensions.Textlocal, 1.0.0"
// Install DDev.Tooling.LoggerExtensions.Textlocal as a Cake Addin #addin nuget:?package=DDev.Tooling.LoggerExtensions.Textlocal&version=1.0.0 // Install DDev.Tooling.LoggerExtensions.Textlocal as a Cake Tool #tool nuget:?package=DDev.Tooling.LoggerExtensions.Textlocal&version=1.0.0
DDev.Tooling.LoggerExtensions.Textlocal
What is this package?
DDev.Tooling.LoggerExtensions.Textlocal allows the notification of specific events to SMS by using the Textlocal SMS Service.
Each text message will include the following information, however much of it will be truncated for compatibility with devices.
- Application (Truncated to 15 Characters)
- Category (Truncated to 10 Characters)
- Severity (4 Letters)
- Message (Truncasted to 115 Characters)
How do I use this package?
Install the package using Nuget into your project.
Within your 'Program.cs' add a using statement to include 'DDev.Tooling.LoggerExtensions.Textlocal'
/Program.cs
using DDev.Tooling.LoggerExtensions.Textlocal;
- Add the TextlocalLogger as a new logging provider.
/Program.cs
var builder = WebApplication.CreateBuilder(args);
builder.Logging.ClearProviders();
builder.Logging.AddTextlocal();
- Edit AppSettings.json to include your configuration.
/AppSettings.json
{
"Logging": {
"Textlocal": {
"LogLevels": [
"Critical"
],
"SendAs": "+44 1234567890",
"ApiKey": "Mzc2ODQ3Mz... ENTER YOUR API KEY ...U1OTZmNmQ=",
"AlertRecipients": [
"+44 1234567890",
"+44 0987654321"
]
}
}
}
Tips
If you find any tools within here helpful, consider buying me a beer - I'd appreciate it.
Change Log
1.0.0 → Initial Publish
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.1)
- Microsoft.Extensions.Logging.Configuration (>= 6.0.0)
- Microsoft.Extensions.Options (>= 6.0.0)
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.0.0 | 241 | 6/23/2022 |