LogCategory Enumeration

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

Namespace:  Microsoft.VisualStudio.SharePoint.Commands
Assembly:  Microsoft.VisualStudio.SharePoint.Commands (in Microsoft.VisualStudio.SharePoint.Commands.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.
Warning Specifies that the message appears in the Output window and in the Warning group of 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.
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.

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 a SharePoint command, use one of the WriteLine() methods of an ISharePointCommandLogger 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.Commands Namespace

Other Resources

How to: Create a SharePoint Command

Error List Window