C# Класс GoogleCloudExtension.Utils.ActivityLogUtils

This utility class implements helpers to log to the activity log, which will help debug issues with the extension that only our customers can reproduce. The log is only written to if the /log parameter is passed to Visual Studio on startup, other than that writing to the log is a noop.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Initialize ( IServiceProvider serviceProvider ) : void

Initialize the helper, most importantly provides the service provider to use to get to the log service.

LogError ( string entry ) : void

Logs an error entry into the log.

LogInfo ( string entry ) : void

Logs a information entry into the log.

Приватные методы

Метод Описание
GetActivityLog ( ) : IVsActivityLog

This method retrieves the activity log service, as per the documentation a new interface must be fetched everytime it is needed, which is why not caching is performed. See https://msdn.microsoft.com/en-us/library/bb166359.aspx for more details.

Описание методов

Initialize() публичный статический Метод

Initialize the helper, most importantly provides the service provider to use to get to the log service.
public static Initialize ( IServiceProvider serviceProvider ) : void
serviceProvider IServiceProvider The service provider to use to get the log service.
Результат void

LogError() публичный статический Метод

Logs an error entry into the log.
public static LogError ( string entry ) : void
entry string The log entry.
Результат void

LogInfo() публичный статический Метод

Logs a information entry into the log.
public static LogInfo ( string entry ) : void
entry string The log entry.
Результат void