ISharePointCommandLogger Interface

Represents the logging service for SharePoint commands.

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

Syntax

'Declaration
Public Interface ISharePointCommandLogger
public interface ISharePointCommandLogger

Methods

  Name Description
Public method WriteLine(String, LogCategory) Writes a message to the Output window or Error List window with the specified category.
Public method WriteLine(String, LogCategory, String) Writes a message to the Output window or Error List window with the specified category and Help keyword.
Public method WriteLine(String, LogCategory, String, Int32, Int32) Writes a message to the Output window or Error List window with the specified category and error location information.
Public method WriteLine(String, LogCategory, String, Int32, Int32, String) Writes a message to the Output window or Error List window with the specified category, error location information, and Help keyword.

Top

Remarks

The logging service enables SharePoint commands to write messages to the Output window or Error List window.

In the Output window, all messages are written to the SharePoint Tools output pane, except when writing messages from deployment extensions. In deployment extensions, messages are written to the Build output pane.

See Also

Reference

Microsoft.VisualStudio.SharePoint.Commands Namespace

Other Resources

Calling into the SharePoint Object Models

How to: Create a SharePoint Command