FileLogger Class

 

Extends the ConsoleLogger to log messages to a file rather than the console window.

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.BuildEngine
Assembly:  Microsoft.Build.Engine (in Microsoft.Build.Engine.dll)


public ref class FileLogger : ConsoleLogger

NameDescription
System_CAPS_pubmethodFileLogger()

Initializes a new instance of the FileLogger class.

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.

NameDescription
System_CAPS_pubpropertyParameters

Gets or sets the parameters passed to the ConsoleLogger.

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.(Inherited from ConsoleLogger.)

System_CAPS_pubpropertyShowSummary

Gets or sets a value indicating whether the logger will display a summary of errors and warnings.

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.(Inherited from ConsoleLogger.)

System_CAPS_pubpropertySkipProjectStartedText

Gets or sets a value indicating whether the logger will display messages when new projects are started during the build.

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.(Inherited from ConsoleLogger.)

System_CAPS_pubpropertyVerbosity

Gets or sets the LoggerVerbosity level of the logger.

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.(Inherited from ConsoleLogger.)

System_CAPS_protpropertyWriteHandler

Gets or sets to the WriteHandler delegate for the ConsoleLogger.

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.(Inherited from ConsoleLogger.)

NameDescription
System_CAPS_pubmethodApplyParameter(String^, String^)

Adds the specified parameter name and value to the logger.

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.(Inherited from ConsoleLogger.)

System_CAPS_pubmethodBuildFinishedHandler(Object^, BuildFinishedEventArgs^)

Handles the BuildFinished event.

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.(Inherited from ConsoleLogger.)

System_CAPS_pubmethodBuildStartedHandler(Object^, BuildStartedEventArgs^)

Handles the BuildStarted event.

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.(Inherited from ConsoleLogger.)

System_CAPS_pubmethodCustomEventHandler(Object^, CustomBuildEventArgs^)

Handles the CustomEventRaised event.

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.(Inherited from ConsoleLogger.)

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodErrorHandler(Object^, BuildErrorEventArgs^)

Handles the ErrorRaised event.

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.(Inherited from ConsoleLogger.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInitialize(IEventSource^)

Registers the logger for the specified events.

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.(Overrides ConsoleLogger::Initialize(IEventSource^).)

System_CAPS_pubmethodInitialize(IEventSource^, Int32)

Registers the logger for the specified events.

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.(Overrides ConsoleLogger::Initialize(IEventSource^, Int32).)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodMessageHandler(Object^, BuildMessageEventArgs^)

Handles the MessageRaised event.

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.(Inherited from ConsoleLogger.)

System_CAPS_pubmethodProjectFinishedHandler(Object^, ProjectFinishedEventArgs^)

Handles the ProjectFinished event.

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.(Inherited from ConsoleLogger.)

System_CAPS_pubmethodProjectStartedHandler(Object^, ProjectStartedEventArgs^)

Handles the ProjectStarted event.

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.(Inherited from ConsoleLogger.)

System_CAPS_pubmethodShutdown()

Stops the logger, releases all resources, and closes the file to which the logger was writing.

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.(Overrides ConsoleLogger::Shutdown().)

System_CAPS_pubmethodTargetFinishedHandler(Object^, TargetFinishedEventArgs^)

Handles the TargetFinished event.

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.(Inherited from ConsoleLogger.)

System_CAPS_pubmethodTargetStartedHandler(Object^, TargetStartedEventArgs^)

Handles the TargetStarted event.

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.(Inherited from ConsoleLogger.)

System_CAPS_pubmethodTaskFinishedHandler(Object^, TaskFinishedEventArgs^)

Handles the TaskFinished event.

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.(Inherited from ConsoleLogger.)

System_CAPS_pubmethodTaskStartedHandler(Object^, TaskStartedEventArgs^)

Handles the TaskStarted event.

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.(Inherited from ConsoleLogger.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodWarningHandler(Object^, BuildWarningEventArgs^)

Handles the WarningRaised event.

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.(Inherited from ConsoleLogger.)

The FileLogger writes messages to a file in exactly the same format as the ConsoleLogger writes messages to the console window.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: