LogMessage Method

Log a message with the specified severity. Only an error will bring the current execution into error state.

Syntax

Sub LogMessage(msg, severity)

Parameters

msg

Type: String

The message description


severity

Type: VSSeverity

The severity of the message. 


Return Value


None

Examples

IronPython

#Log a message

Host.LogMessage("Error message logged by IronPython script",  VSSeverity.Error)



C#

//Log a message

LogMessage("Error message logged by C# script",  VSSeverity.Error);


Remarks