ProjectCollection.RegisterLoggers(IEnumerable<ILogger>) 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.
Adds some loggers to the collection of loggers used for builds of projects in this collection. If any logger object is already in the collection, does nothing for that logger. May be null.
public:
void RegisterLoggers(System::Collections::Generic::IEnumerable<Microsoft::Build::Framework::ILogger ^> ^ loggers);
public void RegisterLoggers (System.Collections.Generic.IEnumerable<Microsoft.Build.Framework.ILogger> loggers);
member this.RegisterLoggers : seq<Microsoft.Build.Framework.ILogger> -> unit
Public Sub RegisterLoggers (loggers As IEnumerable(Of ILogger))
Parameters
- loggers
- IEnumerable<ILogger>
The loggers to be added. May be null.
Remarks
Skips any logger objects that are already in the collection.