Added the driver version to the trace log.
This commit is contained in:
@@ -106,6 +106,7 @@ namespace ASCOM.Meade.net
|
|||||||
//todo move the TraceLogger out to a factory class.
|
//todo move the TraceLogger out to a factory class.
|
||||||
_tl = new TraceLogger("", "Meade.Generic.Telescope");
|
_tl = new TraceLogger("", "Meade.Generic.Telescope");
|
||||||
LogMessage("Telescope", "Starting initialisation");
|
LogMessage("Telescope", "Starting initialisation");
|
||||||
|
LogMessage("Telescope", $"Driver version: {DriverVersion}");
|
||||||
|
|
||||||
ReadProfile(); // Read device configuration from the ASCOM Profile store
|
ReadProfile(); // Read device configuration from the ASCOM Profile store
|
||||||
|
|
||||||
|
|||||||
@@ -74,14 +74,17 @@ namespace ASCOM.Meade.net
|
|||||||
|
|
||||||
private void Initialise()
|
private void Initialise()
|
||||||
{
|
{
|
||||||
|
//todo move the TraceLogger out to a factory class.
|
||||||
Tl = new TraceLogger("", "Meade.Generic.focusser");
|
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
|
ReadProfile(); // Read device configuration from the ASCOM Profile store
|
||||||
|
|
||||||
IsConnected = false; // Initialise connected to false
|
IsConnected = false; // Initialise connected to false
|
||||||
|
|
||||||
Tl.LogMessage("Focuser", "Completed initialisation");
|
LogMessage("Focuser", "Completed initialisation");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user