Compartilhar via


ActivityLog Class

Provides methods for logging messages to the IVsActivityLog.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Shell.ActivityLog

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

Syntax

'Declaration
Public NotInheritable Class ActivityLog
public static class ActivityLog
public ref class ActivityLog abstract sealed
[<AbstractClass>]
[<Sealed>]
type ActivityLog =  class end
public final 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