Company
Date Published
Author
Devin Rader
Word count
874
Language
English
Hacker News points
None

Summary

In this article, the author creates a custom NLog target that sends log messages as SMS notifications using Twilio. The target is configured with properties such as Account SID, Auth Token, From and To phone numbers, and a method to send the message. The author demonstrates how to use this custom target in a simple console application by configuring NLog to write log events to the custom target for all log events at Warn level and above. The article provides an example of how to create a custom NLog target with Twilio SMS notifications, making it easy to add high-configurable logging to .NET applications.