Engine.RegisterDistributedLogger(ILogger, LoggerDescription) Method

Definition

Registers distributed loggers with the build engine.

public:
 void RegisterDistributedLogger(Microsoft::Build::Framework::ILogger ^ centralLogger, Microsoft::Build::BuildEngine::LoggerDescription ^ forwardingLogger);
public void RegisterDistributedLogger (Microsoft.Build.Framework.ILogger centralLogger, Microsoft.Build.BuildEngine.LoggerDescription forwardingLogger);
member this.RegisterDistributedLogger : Microsoft.Build.Framework.ILogger * Microsoft.Build.BuildEngine.LoggerDescription -> unit
Public Sub RegisterDistributedLogger (centralLogger As ILogger, forwardingLogger As LoggerDescription)

Parameters

centralLogger
ILogger

An ILogger that represents the central logger.

forwardingLogger
LoggerDescription

A LoggerDescription that represents the forwarding logger.

Remarks

This method is not thread-safe. To ensure uniform behavior, all loggers should register before the build is started. For more information, see Write multi-processor-aware loggers.

Applies to