C# Class GitScc.Blinkbox.BuildNotificationLogger

Sends build messages to the VS output window
Inheritance: ILogger
Datei anzeigen Open project: blinkbox/Git-Source-Control-Provider

Public Methods

Method Description
BuildNotificationLogger ( NotificationService notifications ) : System

Initializes a new instance of the BuildNotificationLogger class.

HandleError ( Microsoft.Build.Framework.BuildErrorEventArgs error ) : void

Outputs an error.

HandleMessage ( string message, MessageImportance importance = MessageImportance.Normal ) : void

Handle a raised message.

HandleWarning ( Microsoft.Build.Framework.BuildWarningEventArgs warning ) : void

Outputs a warning.

Initialize ( IEventSource buildEventSource ) : void

Initialises the logger.

Shutdown ( ) : void

Cleans up.

Private Methods

Method Description
OutputMessage ( MessageImportance importance ) : bool

Decides whether a message shuld be output depending on the verbosity of the logger.

Method Details

BuildNotificationLogger() public method

Initializes a new instance of the BuildNotificationLogger class.
public BuildNotificationLogger ( NotificationService notifications ) : System
notifications NotificationService The notifications.
return System

HandleError() public method

Outputs an error.
public HandleError ( Microsoft.Build.Framework.BuildErrorEventArgs error ) : void
error Microsoft.Build.Framework.BuildErrorEventArgs /// The error. ///
return void

HandleMessage() public method

Handle a raised message.
public HandleMessage ( string message, MessageImportance importance = MessageImportance.Normal ) : void
message string /// The message. ///
importance MessageImportance /// The importance. ///
return void

HandleWarning() public method

Outputs a warning.
public HandleWarning ( Microsoft.Build.Framework.BuildWarningEventArgs warning ) : void
warning Microsoft.Build.Framework.BuildWarningEventArgs /// The warning. ///
return void

Initialize() public method

Initialises the logger.
public Initialize ( IEventSource buildEventSource ) : void
buildEventSource IEventSource /// The event source. ///
return void

Shutdown() public method

Cleans up.
public Shutdown ( ) : void
return void