Share via


FileLogger Class

Definition

This class (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

A specialization of the ConsoleLogger that logs to a file instead of the console. 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.

public ref class FileLogger : Microsoft::Build::BuildEngine::ConsoleLogger
public class FileLogger : Microsoft.Build.BuildEngine.ConsoleLogger
type FileLogger = class
    inherit ConsoleLogger
Public Class FileLogger
Inherits ConsoleLogger
Inheritance
FileLogger

Remarks

Warning

This class (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Constructors

FileLogger()

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Default constructor.

Properties

Parameters

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution The console logger takes a single parameter to suppress the output of the errors and warnings summary at the end of a build.

(Inherited from ConsoleLogger)
ShowSummary

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Suppresses the display of error and warnings summary.

(Inherited from ConsoleLogger)
SkipProjectStartedText

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Suppresses the display of project headers. Project headers are displayed by default unless this property is set.

(Inherited from ConsoleLogger)
Verbosity

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Gets or sets the level of detail to show in the event log.

(Inherited from ConsoleLogger)
WriteHandler

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

(Inherited from ConsoleLogger)

Methods

ApplyParameter(String, String)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Apply a parameter. NOTE: This method was public by accident in Whidbey, so it cannot be made internal now. It has no good reason for being public.

(Inherited from ConsoleLogger)
BuildFinishedHandler(Object, BuildFinishedEventArgs)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Handler for build finished events

(Inherited from ConsoleLogger)
BuildStartedHandler(Object, BuildStartedEventArgs)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Handler for build started events

(Inherited from ConsoleLogger)
CustomEventHandler(Object, CustomBuildEventArgs)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Prints a custom event

(Inherited from ConsoleLogger)
ErrorHandler(Object, BuildErrorEventArgs)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Prints an error event

(Inherited from ConsoleLogger)
Initialize(IEventSource)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Signs up the console file logger for all build events. This is the backward-compatible overload.

Initialize(IEventSource, Int32)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Multiproc aware initialization

Initialize(IEventSource, Int32)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

(Inherited from ConsoleLogger)
MessageHandler(Object, BuildMessageEventArgs)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Prints a message event

(Inherited from ConsoleLogger)
ProjectFinishedHandler(Object, ProjectFinishedEventArgs)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Handler for project finished events

(Inherited from ConsoleLogger)
ProjectStartedHandler(Object, ProjectStartedEventArgs)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Handler for project started events

(Inherited from ConsoleLogger)
Shutdown()

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Shutdown method implementation of ILogger - we need to flush and close our logfile.

TargetFinishedHandler(Object, TargetFinishedEventArgs)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Handler for target finished events

(Inherited from ConsoleLogger)
TargetStartedHandler(Object, TargetStartedEventArgs)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Handler for target started events

(Inherited from ConsoleLogger)
TaskFinishedHandler(Object, TaskFinishedEventArgs)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Handler for task finished events

(Inherited from ConsoleLogger)
TaskStartedHandler(Object, TaskStartedEventArgs)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Handler for task started events

(Inherited from ConsoleLogger)
WarningHandler(Object, BuildWarningEventArgs)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Prints a warning event

(Inherited from ConsoleLogger)

Applies to