LogCategory Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies where messages written by using the SharePoint log service appear in the Output window and Error List window.
public enum class LogCategory
public enum LogCategory
type LogCategory =
Public Enum LogCategory
- Inheritance
-
LogCategory
Fields
Name | Value | Description |
---|---|---|
Error | 0 | Specifies that the message appears in the Output window and in the Errors group of the Error List window. |
Warning | 1 | Specifies that the message appears in the Output window and in the Warning group of the Error List window. |
Verbose | 2 | 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 | 3 | Specifies that the message appears in the Output window and in the Message group of the Error List window. |
Status | 4 | 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 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.