Lightweight library for .NET that monitors your application and alerts you when something goes wrong.
Configure QuackAlert in two simple steps. No extra boilerplate.
appsettings.json{
"QuackAlert": {
"Enabled": true,
"Environment": "Production",
"Email": {
"SmtpHost": "smtp.gmail.com",
"SmtpPort": 587,
"SmtpUser": "your-email@gmail.com",
"SmtpPassword": "your-app-password",
"From": "your-email@gmail.com",
"To": "recipient@email.com",
"EnableSsl": true
}
}
}In production environments, avoid storing sensitive email configuration values directly inappsettings.json
Prefer supplying these values through environment variables, for exampleQuackAlert__Email__SmtpPassword
Any values defined in appsettings.jsonwill be automatically overridden when the corresponding environment variables are provided
using QuackAlert.Extensions;
builder.Services.AddQuackAlert(options => {
builder.Configuration.GetSection("QuackAlert").Bind(options);
};
var app = builder.Build();
app.UseQuackAlert();