FileLogger.Initialize Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a file logger for a given build event or in a multiprocessor environment.
Initialize(IEventSource) |
Signs up the console file logger for all build events. This is the backward-compatible overload. |
Initialize(IEventSource, Int32) |
Multiproc aware initialization |
- Source:
- FileLogger.cs
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.
Applies to
MSBuild 17 и друге верзије
Производ | Верзије |
---|---|
MSBuild | 15, 16, 17 |
MSBuild (.NET Core) | 15, 16, 17 |
- Source:
- FileLogger.cs
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 event source.
- nodeCount
- Int32
The node count.
- Attributes
Applies to
MSBuild 17 и друге верзије
Производ | Верзије |
---|---|
MSBuild | 15, 16, 17 |
MSBuild (.NET Core) | 15, 16, 17 |