C# Class Microsoft.VisualStudio.Project.IDEBuildLogger

Inheritance: Logger, IDisposable
Afficher le fichier Open project: YaccConstructor/VisualFStar Class Usage Examples

Private Properties

Свойство Type Description
BeginInvokeWithErrorMessage void
CallWithErrorMessage void
ClearCachedVerbosity void
ClearQueuedOutput void
ClearQueuedTasks void
GetFormattedErrorMessage string
IndentOutput void
LogAtImportance bool
ReportQueuedOutput void
ReportQueuedTasks void
SetVerbosity void
ShowErrorMessage void
UnindentOutput void

Méthodes publiques

Méthode Description
IDEBuildLogger ( IVsOutputWindowPane output, TaskProvider taskProvider, IVsHierarchy hierarchy ) : System

Constructor. Inititialize member data.

Initialize ( IEventSource eventSource ) : void

Overridden from the Logger class.

Méthodes protégées

Méthode Description
BuildFinishedHandler ( object sender, Microsoft.Build.Framework.BuildFinishedEventArgs buildEvent ) : void

This is the delegate for BuildFinishedHandler events.

BuildStartedHandler ( object sender, Microsoft.Build.Framework.BuildStartedEventArgs buildEvent ) : void

This is the delegate for BuildStartedHandler events.

CustomHandler ( object sender, Microsoft.Build.Framework.CustomBuildEventArgs buildEvent ) : void

This is the delegate for CustomHandler events.

ErrorHandler ( object sender, Microsoft.Build.Framework.BuildErrorEventArgs errorEvent ) : void

This is the delegate for error events.

MessageHandler ( object sender, BuildMessageEventArgs messageEvent ) : void

This is the delegate for Message event types

ProjectFinishedHandler ( object sender, ProjectFinishedEventArgs buildEvent ) : void

This is the delegate for ProjectFinishedHandler events.

ProjectStartedHandler ( object sender, ProjectStartedEventArgs buildEvent ) : void

This is the delegate for ProjectStartedHandler events.

QueueOutputEvent ( MessageImportance importance, BuildEventArgs buildEvent ) : void
QueueOutputText ( MessageImportance importance, string text ) : void
QueueOutputText ( string text ) : void
QueueTaskEvent ( BuildEventArgs errorEvent ) : void
TargetFinishedHandler ( object sender, TargetFinishedEventArgs buildEvent ) : void

This is the delegate for TargetFinishedHandler events.

TargetStartedHandler ( object sender, TargetStartedEventArgs buildEvent ) : void

This is the delegate for TargetStartedHandler events.

TaskFinishedHandler ( object sender, TaskFinishedEventArgs buildEvent ) : void

This is the delegate for TaskFinishedHandler events.

TaskStartedHandler ( object sender, TaskStartedEventArgs buildEvent ) : void

This is the delegate for TaskStartedHandler events.

WarningHandler ( object sender, BuildWarningEventArgs warningEvent ) : void

This is the delegate for warning events.

Private Methods

Méthode Description
BeginInvokeWithErrorMessage ( IServiceProvider serviceProvider, Dispatcher dispatcher, System.Action action ) : void

Call Dispatcher.BeginInvoke, showing an error message if there was a non-critical exception.

CallWithErrorMessage ( IServiceProvider serviceProvider, System.Action action ) : void

Show error message if exception is caught when invoking a method

ClearCachedVerbosity ( ) : void

Clear the cached verbosity, so that it will be re-evaluated from the build verbosity registry key.

ClearQueuedOutput ( ) : void
ClearQueuedTasks ( ) : void
GetFormattedErrorMessage ( string fileName, int line, int column, bool isWarning, string errorNumber, string errorText ) : string

Format error messages for the task list

IndentOutput ( ) : void
LogAtImportance ( MessageImportance importance ) : bool

This method takes a MessageImportance and returns true if messages at importance i should be loggeed. Otherwise return false.

ReportQueuedOutput ( ) : void
ReportQueuedTasks ( ) : void
SetVerbosity ( ) : void

Sets the verbosity level.

ShowErrorMessage ( IServiceProvider serviceProvider, Exception exception ) : void

Show error window about the exception

UnindentOutput ( ) : void

Method Details

BuildFinishedHandler() protected méthode

This is the delegate for BuildFinishedHandler events.
protected BuildFinishedHandler ( object sender, Microsoft.Build.Framework.BuildFinishedEventArgs buildEvent ) : void
sender object
buildEvent Microsoft.Build.Framework.BuildFinishedEventArgs
Résultat void

BuildStartedHandler() protected méthode

This is the delegate for BuildStartedHandler events.
protected BuildStartedHandler ( object sender, Microsoft.Build.Framework.BuildStartedEventArgs buildEvent ) : void
sender object
buildEvent Microsoft.Build.Framework.BuildStartedEventArgs
Résultat void

CustomHandler() protected méthode

This is the delegate for CustomHandler events.
protected CustomHandler ( object sender, Microsoft.Build.Framework.CustomBuildEventArgs buildEvent ) : void
sender object
buildEvent Microsoft.Build.Framework.CustomBuildEventArgs
Résultat void

ErrorHandler() protected méthode

This is the delegate for error events.
protected ErrorHandler ( object sender, Microsoft.Build.Framework.BuildErrorEventArgs errorEvent ) : void
sender object
errorEvent Microsoft.Build.Framework.BuildErrorEventArgs
Résultat void

IDEBuildLogger() public méthode

Constructor. Inititialize member data.
public IDEBuildLogger ( IVsOutputWindowPane output, TaskProvider taskProvider, IVsHierarchy hierarchy ) : System
output IVsOutputWindowPane
taskProvider TaskProvider
hierarchy IVsHierarchy
Résultat System

Initialize() public méthode

Overridden from the Logger class.
public Initialize ( IEventSource eventSource ) : void
eventSource IEventSource
Résultat void

MessageHandler() protected méthode

This is the delegate for Message event types
protected MessageHandler ( object sender, BuildMessageEventArgs messageEvent ) : void
sender object
messageEvent BuildMessageEventArgs
Résultat void

ProjectFinishedHandler() protected méthode

This is the delegate for ProjectFinishedHandler events.
protected ProjectFinishedHandler ( object sender, ProjectFinishedEventArgs buildEvent ) : void
sender object
buildEvent ProjectFinishedEventArgs
Résultat void

ProjectStartedHandler() protected méthode

This is the delegate for ProjectStartedHandler events.
protected ProjectStartedHandler ( object sender, ProjectStartedEventArgs buildEvent ) : void
sender object
buildEvent ProjectStartedEventArgs
Résultat void

QueueOutputEvent() protected méthode

protected QueueOutputEvent ( MessageImportance importance, BuildEventArgs buildEvent ) : void
importance MessageImportance
buildEvent BuildEventArgs
Résultat void

QueueOutputText() protected méthode

protected QueueOutputText ( MessageImportance importance, string text ) : void
importance MessageImportance
text string
Résultat void

QueueOutputText() protected méthode

protected QueueOutputText ( string text ) : void
text string
Résultat void

QueueTaskEvent() protected méthode

protected QueueTaskEvent ( BuildEventArgs errorEvent ) : void
errorEvent BuildEventArgs
Résultat void

TargetFinishedHandler() protected méthode

This is the delegate for TargetFinishedHandler events.
protected TargetFinishedHandler ( object sender, TargetFinishedEventArgs buildEvent ) : void
sender object
buildEvent TargetFinishedEventArgs
Résultat void

TargetStartedHandler() protected méthode

This is the delegate for TargetStartedHandler events.
protected TargetStartedHandler ( object sender, TargetStartedEventArgs buildEvent ) : void
sender object
buildEvent TargetStartedEventArgs
Résultat void

TaskFinishedHandler() protected méthode

This is the delegate for TaskFinishedHandler events.
protected TaskFinishedHandler ( object sender, TaskFinishedEventArgs buildEvent ) : void
sender object
buildEvent TaskFinishedEventArgs
Résultat void

TaskStartedHandler() protected méthode

This is the delegate for TaskStartedHandler events.
protected TaskStartedHandler ( object sender, TaskStartedEventArgs buildEvent ) : void
sender object
buildEvent TaskStartedEventArgs
Résultat void

WarningHandler() protected méthode

This is the delegate for warning events.
protected WarningHandler ( object sender, BuildWarningEventArgs warningEvent ) : void
sender object
warningEvent BuildWarningEventArgs
Résultat void