A collection of 9 posts
Getting Started with Serilog Custom Enrichers
One of the key features of Serilog is the ability to Enrich Log Events with additional contextual information that can help in troubleshooting and debugging. In this blog post, we will explore how to create a Custom Enricher with Serilog to add custom properties to log events.
Calculate Time Ago with .NET C#
Here is a small extension method over System.DateTime that gives its relative time readable for humans, such as: * one minute ago * 2 minutes ago * one hour ago * 3 hours ago * 3 days ago Check out this extension method over the DateTime structure using switch patterns. public static string AsTimeAgo(
Create a Minimal API with .NET 6
One of the new features of .NET 6 is the arrival of a new template, which will replace the default and bring a good reduction in code writing. Including the removal of the Startup.cs file. .NET 6 was released as LTS (long-term stable) which means support for 3 years.
Health Checks on your ASP.NET Core Application
Health Endpoint Monitoring pattern Health Check in .NET 5 is very simple. With just a few lines of code, you can set up everything to monitor the Health of our Application. Implement functional checks in an application that external tools can access through exposed endpoints at regular intervals. This can