Heartbeat logger in Dotnet Core