Debugger.Log Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Posts a message for the attached debugger.
Namespace: System.Diagnostics
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
<SecuritySafeCriticalAttribute> _
Public Shared Sub Log ( _
level As Integer, _
category As String, _
message As String _
)
[SecuritySafeCriticalAttribute]
public static void Log(
int level,
string category,
string message
)
Parameters
- level
Type: System.Int32
A description of the importance of the message.
- category
Type: System.String
The category of the message. This parameter is limited to 256 characters. Longer strings are truncated.
- message
Type: System.String
The message to show.
Remarks
If there is no debugger attached, this method has no effect. The debugger might not report the message, depending on its settings.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Xbox 360, Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.