Partilhar via


ConsoleLogger 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

This class implements the default logger that outputs event data to the console (stdout). It is a facade: it creates, wraps and delegates to a kind of BaseConsoleLogger, either SerialConsoleLogger or ParallelConsoleLogger.

public ref class ConsoleLogger : Microsoft::Build::Framework::INodeLogger
public ref class ConsoleLogger : Microsoft::Build::Framework::ILogger
public class ConsoleLogger : Microsoft.Build.Framework.INodeLogger
public class ConsoleLogger : Microsoft.Build.Framework.ILogger
type ConsoleLogger = class
    interface INodeLogger
    interface ILogger
type ConsoleLogger = class
    interface ILogger
Public Class ConsoleLogger
Implements INodeLogger
Public Class ConsoleLogger
Implements ILogger
Inheritance
ConsoleLogger
Derived
Implements

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

ConsoleLogger()

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.

ConsoleLogger(LoggerVerbosity)

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

Create a logger instance with a specific verbosity. This logs to the default console.

ConsoleLogger(LoggerVerbosity, WriteHandler, ColorSetter, ColorResetter)

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

Initializes the logger, with alternate output handlers.

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.

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.

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.

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.

WriteHandler

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

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.

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

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

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

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

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 logger for all build events.

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

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

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

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

Shutdown()

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 does not need to release any resources. This method does nothing.

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

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

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

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

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

Applies to