From 692e39771c02f0e4fb5aa6108564694ae32cd8d7 Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 22 Jul 2019 00:18:40 +0100 Subject: [PATCH] Added the driver version to the trace log. --- Meade.net.Telescope/Telescope.cs | 1 + Meade.net.focuser/Focuser.cs | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Meade.net.Telescope/Telescope.cs b/Meade.net.Telescope/Telescope.cs index 6b62306..35f5a27 100644 --- a/Meade.net.Telescope/Telescope.cs +++ b/Meade.net.Telescope/Telescope.cs @@ -106,6 +106,7 @@ namespace ASCOM.Meade.net //todo move the TraceLogger out to a factory class. _tl = new TraceLogger("", "Meade.Generic.Telescope"); LogMessage("Telescope", "Starting initialisation"); + LogMessage("Telescope", $"Driver version: {DriverVersion}"); ReadProfile(); // Read device configuration from the ASCOM Profile store diff --git a/Meade.net.focuser/Focuser.cs b/Meade.net.focuser/Focuser.cs index 7b99b39..eb3eae2 100644 --- a/Meade.net.focuser/Focuser.cs +++ b/Meade.net.focuser/Focuser.cs @@ -74,14 +74,17 @@ namespace ASCOM.Meade.net private void Initialise() { + //todo move the TraceLogger out to a factory class. Tl = new TraceLogger("", "Meade.Generic.focusser"); - Tl.LogMessage("Focuser", "Starting initialisation"); + LogMessage("Focuser", "Starting initialisation"); + LogMessage("Focuser", $"Driver version: {DriverVersion}"); + ReadProfile(); // Read device configuration from the ASCOM Profile store IsConnected = false; // Initialise connected to false - Tl.LogMessage("Focuser", "Completed initialisation"); + LogMessage("Focuser", "Completed initialisation"); }