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.
파일 보기 프로젝트 열기: GoogleCloudPlatform/google-cloud-visualstudio 1 사용 예제들

공개 메소드들

메소드 설명
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