FileLogger FileLogger FileLogger FileLogger Class

Definition

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

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

Remarks

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

Constructors

FileLogger() FileLogger() FileLogger() FileLogger()

Initializes a new instance of the FileLogger class.

Methods

ApplyParameter(String, String) ApplyParameter(String, String) ApplyParameter(String, String) ApplyParameter(String, String)

Adds the specified parameter name and value to the logger.

(Inherited from ConsoleLogger)
BuildFinishedHandler(Object, BuildFinishedEventArgs) BuildFinishedHandler(Object, BuildFinishedEventArgs) BuildFinishedHandler(Object, BuildFinishedEventArgs) BuildFinishedHandler(Object, BuildFinishedEventArgs)

Handles the BuildFinished event.

(Inherited from ConsoleLogger)
BuildStartedHandler(Object, BuildStartedEventArgs) BuildStartedHandler(Object, BuildStartedEventArgs) BuildStartedHandler(Object, BuildStartedEventArgs) BuildStartedHandler(Object, BuildStartedEventArgs)

Handles the BuildStarted event.

(Inherited from ConsoleLogger)
CustomEventHandler(Object, CustomBuildEventArgs) CustomEventHandler(Object, CustomBuildEventArgs) CustomEventHandler(Object, CustomBuildEventArgs) CustomEventHandler(Object, CustomBuildEventArgs)

Handles the CustomEventRaised event.

(Inherited from ConsoleLogger)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
ErrorHandler(Object, BuildErrorEventArgs) ErrorHandler(Object, BuildErrorEventArgs) ErrorHandler(Object, BuildErrorEventArgs) ErrorHandler(Object, BuildErrorEventArgs)

Handles the ErrorRaised event.

(Inherited from ConsoleLogger)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
Initialize(IEventSource) Initialize(IEventSource) Initialize(IEventSource) Initialize(IEventSource)

Registers the logger for the specified events.

Initialize(IEventSource, Int32) Initialize(IEventSource, Int32) Initialize(IEventSource, Int32) Initialize(IEventSource, Int32)

Registers the logger for the specified events.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MessageHandler(Object, BuildMessageEventArgs) MessageHandler(Object, BuildMessageEventArgs) MessageHandler(Object, BuildMessageEventArgs) MessageHandler(Object, BuildMessageEventArgs)

Handles the MessageRaised event.

(Inherited from ConsoleLogger)
ProjectFinishedHandler(Object, ProjectFinishedEventArgs) ProjectFinishedHandler(Object, ProjectFinishedEventArgs) ProjectFinishedHandler(Object, ProjectFinishedEventArgs) ProjectFinishedHandler(Object, ProjectFinishedEventArgs)

Handles the ProjectFinished event.

(Inherited from ConsoleLogger)
ProjectStartedHandler(Object, ProjectStartedEventArgs) ProjectStartedHandler(Object, ProjectStartedEventArgs) ProjectStartedHandler(Object, ProjectStartedEventArgs) ProjectStartedHandler(Object, ProjectStartedEventArgs)

Handles the ProjectStarted event.

(Inherited from ConsoleLogger)
Shutdown() Shutdown() Shutdown() Shutdown()

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

TargetFinishedHandler(Object, TargetFinishedEventArgs) TargetFinishedHandler(Object, TargetFinishedEventArgs) TargetFinishedHandler(Object, TargetFinishedEventArgs) TargetFinishedHandler(Object, TargetFinishedEventArgs)

Handles the TargetFinished event.

(Inherited from ConsoleLogger)
TargetStartedHandler(Object, TargetStartedEventArgs) TargetStartedHandler(Object, TargetStartedEventArgs) TargetStartedHandler(Object, TargetStartedEventArgs) TargetStartedHandler(Object, TargetStartedEventArgs)

Handles the TargetStarted event.

(Inherited from ConsoleLogger)
TaskFinishedHandler(Object, TaskFinishedEventArgs) TaskFinishedHandler(Object, TaskFinishedEventArgs) TaskFinishedHandler(Object, TaskFinishedEventArgs) TaskFinishedHandler(Object, TaskFinishedEventArgs)

Handles the TaskFinished event.

(Inherited from ConsoleLogger)
TaskStartedHandler(Object, TaskStartedEventArgs) TaskStartedHandler(Object, TaskStartedEventArgs) TaskStartedHandler(Object, TaskStartedEventArgs) TaskStartedHandler(Object, TaskStartedEventArgs)

Handles the TaskStarted event.

(Inherited from ConsoleLogger)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
WarningHandler(Object, BuildWarningEventArgs) WarningHandler(Object, BuildWarningEventArgs) WarningHandler(Object, BuildWarningEventArgs) WarningHandler(Object, BuildWarningEventArgs)

Handles the WarningRaised event.

(Inherited from ConsoleLogger)

Properties

Parameters Parameters Parameters Parameters

Gets or sets the parameters passed to the ConsoleLogger.

(Inherited from ConsoleLogger)
ShowSummary ShowSummary ShowSummary ShowSummary

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

(Inherited from ConsoleLogger)
SkipProjectStartedText SkipProjectStartedText SkipProjectStartedText SkipProjectStartedText

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

(Inherited from ConsoleLogger)
Verbosity Verbosity Verbosity Verbosity

Gets or sets the LoggerVerbosity level of the logger.

(Inherited from ConsoleLogger)
WriteHandler WriteHandler WriteHandler WriteHandler

Gets or sets to the WriteHandler delegate for the ConsoleLogger.

(Inherited from ConsoleLogger)

Applies to