From 7fbf8d49ea047e94d959796c9b3c23732bf3633a Mon Sep 17 00:00:00 2001
From: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com>
Date: Fri, 8 Dec 2023 15:11:04 +0000
Subject: [PATCH] chore(core): Added net runtime version info to global logging
 (#3099)

Added net runtime version info to global logging
---
 Core/Core/Logging/SpeckleLog.cs | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/Core/Core/Logging/SpeckleLog.cs b/Core/Core/Logging/SpeckleLog.cs
index b635256577..13839af2f7 100644
--- a/Core/Core/Logging/SpeckleLog.cs
+++ b/Core/Core/Logging/SpeckleLog.cs
@@ -311,9 +311,20 @@ private static void _addHostOsInfoToGlobalContext()
   {
     var osVersion = Environment.OSVersion;
     var osArchitecture = RuntimeInformation.ProcessArchitecture.ToString();
-    GlobalLogContext.PushProperty("hostOs", _deterimineHostOsSlug());
+    var osSlug = _deterimineHostOsSlug();
+    var runtime = RuntimeInformation.FrameworkDescription;
+    GlobalLogContext.PushProperty("hostOs", osSlug);
     GlobalLogContext.PushProperty("hostOsVersion", osVersion);
     GlobalLogContext.PushProperty("hostOsArchitecture", osArchitecture);
+    GlobalLogContext.PushProperty("runtime", runtime);
+
+    Logger.Information(
+      "Executing using {runtime} on {hostOs} {hostOsVersion} {hostOsArchitecture}",
+      runtime,
+      osSlug,
+      osVersion,
+      osArchitecture
+    );
   }
 
   private static void _addHostApplicationDataToGlobalContext(string hostApplicationName, string? hostApplicationVersion)