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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DDev.Tooling.LoggerExtensions.Textlocal" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DDev.Tooling.LoggerExtensions.Textlocal --version 1.0.0                
#r "nuget: DDev.Tooling.LoggerExtensions.Textlocal, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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.

Textlocal is available here.

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?

  1. Install the package using Nuget into your project.

  2. Within your 'Program.cs' add a using statement to include 'DDev.Tooling.LoggerExtensions.Textlocal'

/Program.cs

using DDev.Tooling.LoggerExtensions.Textlocal;
  1. Add the TextlocalLogger as a new logging provider.
/Program.cs

var builder = WebApplication.CreateBuilder(args);
builder.Logging.ClearProviders();
builder.Logging.AddTextlocal();
  1. 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.

Use PayPal to buy me a beer.

Change Log
1.0.0 → Initial Publish
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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