Condividi tramite


ProjectCollection.RegisterLogger(ILogger) Method

Definition

Adds a logger to the collection of loggers used for builds of projects in this collection. If the logger object is already in the collection, does nothing.

public:
 void RegisterLogger(Microsoft::Build::Framework::ILogger ^ logger);
public void RegisterLogger (Microsoft.Build.Framework.ILogger logger);
member this.RegisterLogger : Microsoft.Build.Framework.ILogger -> unit
Public Sub RegisterLogger (logger As ILogger)

Parameters

logger
ILogger

The logger to add.

Remarks

If the logger object is already in the collection, does nothing.

Applies to