共用方式為


ActivityLog Class

Provides methods for logging messages to the IVsActivityLog.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Shell.ActivityLog

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Public NotInheritable Class ActivityLog
public static class ActivityLog

The ActivityLog type exposes the following members.

Properties

  Name Description
Public propertyStatic member LogFilePath Gets the path to the activity log for the current application.

Top

Methods

  Name Description
Public methodStatic member LogError Logs an error message in the activity log with the given source.
Public methodStatic member LogInformation Logs an information message in the activity log with the given source.
Public methodStatic member LogWarning Logs a warning message in the activity log with the given source.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Shell Namespace