Engine.RegisterDistributedLogger(ILogger, LoggerDescription) Method
Definition
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.
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
- 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.