System.Diagnostics.Debugger.Log Method

Posts a message for the attached debugger.

Syntax

public static void Log (int level, string category, string message)

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.

Note:

The category parameter is limited to 256 characters. Strings longer than 256 characters are truncated.

Requirements

Namespace: System.Diagnostics
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0