Click or drag to resize

TraceLoggerLogStart Method

Writes the time and identifier to the log, leaving the line ready for further content through LogContinue and LogFinish

Namespace:  ASCOM.Utilities
Assembly:  ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
public void LogStart(
	string Identifier,
	string Message


Type: SystemString
Identifies the meaning of the message e.g. name of module or method logging the message.
Type: SystemString
Message to log

Use this to start a log line where you want to write further information on the line at a later time.

E.g. You might want to use this to record that an action has started and then append the word OK if all went well. You would then end up with just one line to record the whole transaction even though you didn't know that it would be successful when you started. If you just used LogMsg you would have ended up with two log lines, one showing the start of the transaction and the next the outcome.

Will create a LOGISSUE message in the log if called before a line started by LogStart has been closed with LogFinish. Possible reasons for this are exceptions causing the normal flow of code to be bypassed or logic errors.

See Also