Click or drag to resize

TraceLoggerLogMessage Method (String, String)

Logs a complete message in one call

Namespace:  ASCOM.Utilities
Assembly:  ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
public void LogMessage(
	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 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.

This overload is not available through COM, please use "LogMessage(ByVal Identifier As String, ByVal Message As String, ByVal HexDump As Boolean)" with HexDump set False to achieve this effect.

See Also