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)

public interface ISharePointProjectLogger

The ISharePointProjectLogger type exposes the following members.

  NameDescription
Public methodActivateOutputWindowOpens the Output window and activates the current Output window pane.
Public methodClearErrorListClears the Error List of all SharePoint Tool-related error messages.
Public methodGetNewSubcategoryIdReturns a subcategory identifier which can be used to log and remove messages from the error list.
Public methodRemoveMessagesRemoves messages from the Error List based on the subcategory of the messages.
Public methodWriteLine(String, LogCategory)Logs a message to the SharePoint Tools Output window and Error List depending on the specified LogCategory.
Public methodWriteLine(String, LogCategory, Int32)Logs a message to SharePoint Tools output pane and Error List depending on the specified LogCategory
Public methodWriteLine(String, LogCategory, String)Logs a message to the SharePoint Tools Output window and Error List depending on the specified LogCategory.
Public methodWriteLine(String, LogCategory, String, Int32)Logs a message to SharePoint Tools output pane and Error List depending on the specified LogCategory.
Public methodWriteLine(String, LogCategory, String, Int32, Int32)Logs a message to the SharePoint Tools Output window and Error List depending on the specified LogCategory.
Public methodWriteLine(String, LogCategory, String, Int32, Int32, Int32)Logs a message to SharePoint Tools output pane and Error List depending on the specified LogCategory.
Public methodWriteLine(String, LogCategory, String, Int32, Int32, String)Logs a message to the SharePoint Tools Output window and Error List depending on the specified LogCategory.
Public methodWriteLine(String, LogCategory, String, Int32, Int32, String, Int32)Log a message to SharePoint Tools output pane and Error List depending on the specified LogCategory.
Top

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft