ISharePointProjectLogger Interface

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

Represents the SharePoint logging service, which enables SharePoint project extensions to log messages into the Output window and Error List, depending on the specified LogCategory.

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

Syntax

'Declaration
Public Interface ISharePointProjectLogger
public interface ISharePointProjectLogger

The ISharePointProjectLogger type exposes the following members.

Methods

  Name Description
Public method ActivateOutputWindow Opens the Output window and activates the current Output window pane.
Public method ClearErrorList Clears the Error List of all SharePoint Tool-related error messages.
Public method GetNewSubcategoryId Returns a subcategory identifier which can be used to log and remove messages from the error list.
Public method RemoveMessages Removes messages from the Error List based on the subcategory of the messages.
Public method WriteLine(String, LogCategory) Logs a message to the SharePoint Tools Output window and Error List depending on the specified LogCategory.
Public method WriteLine(String, LogCategory, Int32) Logs a message to SharePoint Tools output pane and Error List depending on the specified LogCategory
Public method WriteLine(String, LogCategory, String) Logs a message to the SharePoint Tools Output window and Error List depending on the specified LogCategory.
Public method WriteLine(String, LogCategory, String, Int32) Logs a message to SharePoint Tools output pane and Error List depending on the specified LogCategory.
Public method WriteLine(String, LogCategory, String, Int32, Int32) Logs a message to the SharePoint Tools Output window and Error List depending on the specified LogCategory.
Public method WriteLine(String, LogCategory, String, Int32, Int32, Int32) Logs a message to SharePoint Tools output pane and Error List depending on the specified LogCategory.
Public method WriteLine(String, LogCategory, String, Int32, Int32, String) Logs a message to the SharePoint Tools Output window and Error List depending on the specified LogCategory.
Public method WriteLine(String, LogCategory, String, Int32, Int32, String, Int32) Log a message to SharePoint Tools output pane and Error List depending on the specified LogCategory.

Top

Remarks

All logged messages go to a "SharePoint Tools" Output window pane, except when performing deployment, when messages are re-directed to the VS "Build" pane in the Output window.

See Also

Reference

Microsoft.VisualStudio.SharePoint Namespace