Log verbose results of the health check

David Thielen 3,186 Reputation points
2023-07-30T14:46:04.1633333+00:00

Hi all;

Is there a way, when my app first starts up, just before calling app.Run() in Program.cs - to write to ILogger verbose results of all the health checks? That way I have in the log at startup a listing of the health of all my dependencies.

thanks - dave

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,772 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,662 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.