Added the driver version to the trace log.

This commit is contained in:
2019-07-22 00:18:40 +01:00
parent e582761f53
commit 692e39771c
2 changed files with 6 additions and 2 deletions
+1
View File
@@ -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
+5 -2
View File
@@ -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");
}