This documentation is archived and is not being maintained.

Debugger.Log Method

Posts a message for the attached debugger.

[Visual Basic]
Public Shared Sub Log( _
   ByVal level As Integer, _
   ByVal category As String, _
   ByVal message As String _
)
[C#]
public static void Log(
 int level,
 string category,
 string message
);
[C++]
public: static void Log(
 int level,
 String* category,
 String* message
);
[JScript]
public static function Log(
   level : int,
 category : String,
 message : String
);

Parameters

level
A description of the importance of the message.
category
The category of the message.
message
The message to show.

Remarks

If there is no debugger attached, this method has no effect. The debugger might or might not report the message, depending upon its settings.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Debugger Class | Debugger Members | System.Diagnostics Namespace

Show: