TraceLoggerLogMessage(String, String, Boolean) Method

Logs a complete message in one call, including a hex translation of the message

Definition

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

Parameters

Identifier  String
Identifies the meaning of the message e.g. name of module or method logging the message.
Message  String
Message to log
HexDump  Boolean
True to append a hex translation of the message at the end of the message

Remarks

Use this for straightforward logging requirements. Writes all information in one command.

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