VersaTul.Logger.Mail
1.0.17
Prefix Reserved
dotnet add package VersaTul.Logger.Mail --version 1.0.17
NuGet\Install-Package VersaTul.Logger.Mail -Version 1.0.17
<PackageReference Include="VersaTul.Logger.Mail" Version="1.0.17" />
paket add VersaTul.Logger.Mail --version 1.0.17
#r "nuget: VersaTul.Logger.Mail, 1.0.17"
// Install VersaTul.Logger.Mail as a Cake Addin #addin nuget:?package=VersaTul.Logger.Mail&version=1.0.17 // Install VersaTul.Logger.Mail as a Cake Tool #tool nuget:?package=VersaTul.Logger.Mail&version=1.0.17
VersaTul Logger Mail
VersaTul Logger Mail is a project that provides the functionality to perform logging to an email address or addresses. It implements the ILogger interface from the VersaTul Logger project and uses the VersaTul Mailer project to send emails.
Installation
You can install VersaTul Logger Mail from NuGet using the following command:
PM> NuGet\Install-Package VersaTul.Logger.Mail -Version latest
Usage
To use VersaTul Logger Mail, you need to create an instance of the MailLogger class and pass in the email address or addresses that you want to log to. For example:
using VersaTul.Logger.Mail;
// Create a mail logger that logs to errors@domain.com
IMailLogger logger = new MailLogger("errors@domain.com");
// Log a message with the default level (Info)
logger.Log("This is a test message");
// Log a message with a specific level (Error)
logger.Log("This is an error message", LogLevel.Error);
License
VersaTul Logger Mail is licensed under the MIT License. See the LICENSE file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. net9.0 is compatible. |
-
net8.0
- VersaTul.Logger (>= 1.0.10)
- VersaTul.Mailer (>= 1.0.15)
-
net9.0
- VersaTul.Logger (>= 1.0.10)
- VersaTul.Mailer (>= 1.0.15)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.