Compartilhar via


FileLogger.Initialize Method

Definition

Registers the logger for the specified events.

Overloads

Initialize(IEventSource)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Signs up the console file logger for all build events. This is the backward-compatible overload.

Initialize(IEventSource, Int32)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Multiproc aware initialization

Initialize(IEventSource)

Source:
FileLogger.cs

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Signs up the console file logger for all build events. This is the backward-compatible overload.

public:
 override void Initialize(Microsoft::Build::Framework::IEventSource ^ eventSource);
public override void Initialize (Microsoft.Build.Framework.IEventSource eventSource);
override this.Initialize : Microsoft.Build.Framework.IEventSource -> unit
Public Overrides Sub Initialize (eventSource As IEventSource)

Parameters

eventSource
IEventSource

Available events.

Remarks

Warning

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Applies to

Initialize(IEventSource, Int32)

Source:
FileLogger.cs

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Multiproc aware initialization

public:
 override void Initialize(Microsoft::Build::Framework::IEventSource ^ eventSource, int nodeCount);
public override void Initialize (Microsoft.Build.Framework.IEventSource eventSource, int nodeCount);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public override void Initialize (Microsoft.Build.Framework.IEventSource eventSource, int nodeCount);
override this.Initialize : Microsoft.Build.Framework.IEventSource * int -> unit
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
override this.Initialize : Microsoft.Build.Framework.IEventSource * int -> unit
Public Overrides Sub Initialize (eventSource As IEventSource, nodeCount As Integer)

Parameters

eventSource
IEventSource

The IEventSource to register with the logger.

nodeCount
Int32

An integer representing the node ID for the event source.

Attributes

Remarks

Warning

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Applies to