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

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
public void LogMessage(
	string Identifier,
	string Message,
	bool HexDump
)
Visual Basic
Public Sub LogMessage ( _
	Identifier As String, _
	Message As String, _
	HexDump As Boolean _
)
Visual C++
public:
virtual void LogMessage(
	String^ Identifier, 
	String^ Message, 
	bool HexDump
) sealed

Parameters

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

Implements

ITraceLogger..::..LogMessage(String, String, Boolean)

Remarks

Use this for straightforward logging requrements. 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. Posible reasons for this are exceptions causing the normal flow of code to be bypassed or logic errors.

See Also