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)
Syntax
'Declaration
<GuidAttribute("76AF73F9-A322-42B0-A515-D4D7553508FE")> _
<InterfaceTypeAttribute()> _
Public Interface IVsActivityLog
[GuidAttribute("76AF73F9-A322-42B0-A515-D4D7553508FE")]
[InterfaceTypeAttribute()]
public interface IVsActivityLog
[GuidAttribute(L"76AF73F9-A322-42B0-A515-D4D7553508FE")]
[InterfaceTypeAttribute()]
public interface class IVsActivityLog
[<GuidAttribute("76AF73F9-A322-42B0-A515-D4D7553508FE")>]
[<InterfaceTypeAttribute()>]
type IVsActivityLog = interface end
public interface IVsActivityLog
The IVsActivityLog type exposes the following members.
Methods
Name | Description | |
---|---|---|
LogEntry | Makes a log entry specifying the log type, the package name, and the event text. | |
LogEntryGuid | Makes a log entry specifying entry type, package name, event text, and GUID to store in the event record. | |
LogEntryGuidHr | Makes 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. | |
LogEntryGuidHrPath | Makes 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. | |
LogEntryGuidPath | Makes 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. | |
LogEntryHr | Makes a log entry specifying entry type, package name, event text, and an HRESULT to store in the event record. | |
LogEntryHrPath | Makes 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. | |
LogEntryPath | Makes a log entry specifying entry type, package name, event text, and a full file path to store in the event record. |
Top
Remarks
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.