FileLogger Class

FileLogger Class

 

A specialization of the ConsoleLogger that logs to a file instead of the console.

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)


public class FileLogger : ConsoleLogger

NameDescription
System_CAPS_pubmethodFileLogger()

Creates a file 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.

NameDescription
System_CAPS_pubpropertyParameters

Gets or sets a semicolon-delimited list of parameter key-value pairs.

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 switch that determines whether to suppress the display of errors and the warnings summary.

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 switch that determines whether to suppress the display of project headers.

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 level of detail to show in the event log.

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

Provides access to the write handler delegate so that it can be redirected if necessary (e.g. to a file).

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)

Applies a parameter 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)

Called when the build is finished.

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)

Called when the build is started.

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)

Called to log a custom 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)

Called to log an error 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)

Signs up the console file logger for the given build 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)

Initializes a file logger in a multiprocessor environment.

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)

Called to log a message 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)

Called to log a project finished 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)

Called to log a project started 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()

Called when the build is finished.

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)

Called to log a target finished 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)

Called to log a target started 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)

Called to log a task finished 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)

Called to log a task started 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)

Called to log a warning 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 output in terms of what is written and how it looks is identical. For example you can log verbosely to a file using the FileLogger while simultaneously logging only high priority events to the console using a ConsoleLogger.

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:
© 2016 Microsoft