TraceLoggerLogStart Method

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

Definition

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 7.1.3+4851.c5da65c2b
C#
public void LogStart(
	string Identifier,
	string Message
)

Parameters

Identifier  String
Identifies the meaning of the message e.g. name of module or method logging the message.
Message  String
Message to log

Remarks

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