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: (
public void LogStart(
	string Identifier,
	string Message


Type: SystemString
Identifies the meaning of the the message e.g. name of modeule 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. Posible reasons for this are exceptions causing the normal flow of code to be bypassed or logic errors.

See Also