Export (0) Print
Expand All

IVsActivityLog Interface

Adds events to the IDE Activity Log. Use the SVsActivityLog (SID_SVsActivityLog) service to get an instance of the interface.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

[GuidAttribute("76AF73F9-A322-42B0-A515-D4D7553508FE")]
[InterfaceTypeAttribute()]
public interface IVsActivityLog

The IVsActivityLog type exposes the following members.

  NameDescription
Public methodLogEntryMakes a log entry specifying the log type, the package name, and the event text.
Public methodLogEntryGuidMakes a log entry specifying entry type, package name, event text, and GUID to store in the event record.
Public methodLogEntryGuidHrMakes a log entry specifying entry type, package name, event text, a GUID to store in the event record, and an HRESULT to store in the event record.
Public methodLogEntryGuidHrPathMakes a log entry specifying entry type, package name, the event text, a GUID to store in the event record, an HRESULT to store in the event record and a full file path to store in the event record.
Public methodLogEntryGuidPathMakes a log entry specifying entry type, package name, event text, a GUID to store in the event record, and a full file path to store in the event record.
Public methodLogEntryHrMakes a log entry specifying entry type, package name, event text, and an HRESULT to store in the event record.
Public methodLogEntryHrPathMakes a log entry specifying entry type, package name, event text, an HRESULT to store in the event record, and a full file path to store in the event record.
Public methodLogEntryPathMakes a log entry specifying entry type, package name, event text, and a full file path to store in the event record.
Top

Visual Studio activates the log when the shell receives the /log switch, or when you set an environment variable ("VSLogActivity").

Use the log to record high level information for quickly tracking down and routing problems. The log is not a tracing tool—log only key events. When logging is on, the implementation logs an event in response to each method on this interface. When logging is off, the implementation for each method is a fast no-op.

Show:
© 2014 Microsoft