Share via


LoggerDescription.CreateLogger Method

Creates an ILogger instance from the data in this description.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Logging
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

Syntax

'Declaration
Public Function CreateLogger As ILogger
public ILogger CreateLogger()
public:
ILogger^ CreateLogger()
member CreateLogger : unit -> ILogger
public function CreateLogger() : ILogger

Return Value

Type: Microsoft.Build.Framework.ILogger
Returns an ILogger instance from the data in this description.

Remarks

This method may throw a variety of reflection exceptions if the data is invalid. It is the resposibility of the caller to handle these exceptions if desired.

.NET Framework Security

See Also

Reference

LoggerDescription Class

Microsoft.Build.Logging Namespace