Condividi tramite


LogCategory Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Specifies where messages written by using the SharePoint log service appear in the Output window and Error List window.

Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
Public Enumeration LogCategory
public enum LogCategory

Members

Member name Description
Error Specifies that the message appears in the Output window and in the Errors group of the Error List window.
Message Specifies that the message appears in the Output window and in the Message group of the Error List window.
Status Specifies that the message appears only in the Output window. The message does not appear in the Error List window.
Verbose Specifies that the message appears only in the Output window, if verbose messages are enabled. The message does not appear in the Error List window.
Warning Specifies that the message appears in the Output window and in the Warning group of the Error List window.

Remarks

The LogCategory values specify whether a message appears in the Output window or Error List window (or both), and the group in which the message appears in the Error List window.

To write a message to the Output window or Error List window from an extension of the SharePoint project system, use one of the WriteLine() methods of an ISharePointProjectLogger object.

Enabling Verbose Messages

To display verbose messages in the Output window, the EnableDiagnostics value under the registry key HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\SharePointTools must be set to 1. For more information, see Debugging SharePoint Solutions.

See Also

Reference

Microsoft.VisualStudio.SharePoint Namespace