ConsoleLogger Class

Definition

Implements the standard console logger that outputs event data to the console window during a build.

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

Constructors

ConsoleLogger()

Initializes a new instance of the ConsoleLogger class.

ConsoleLogger(LoggerVerbosity)

Initializes a new instance of the ConsoleLogger class with the specified LoggerVerbosity.

ConsoleLogger(LoggerVerbosity, WriteHandler, ColorSetter, ColorResetter)

Initializes a new instance of the ConsoleLogger class with the specified LoggerVerbosity, ColorSetter, and ColorResetter values.

Properties

Parameters

Gets or sets the parameters passed to the ConsoleLogger.

ShowSummary

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

SkipProjectStartedText

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

Verbosity

Gets or sets the LoggerVerbosity level of the logger.

WriteHandler

Gets or sets to the WriteHandler delegate for the ConsoleLogger.

Methods

ApplyParameter(String, String)

Adds the specified parameter name and value to the logger.

BuildFinishedHandler(Object, BuildFinishedEventArgs)

Handles the BuildFinished event.

BuildStartedHandler(Object, BuildStartedEventArgs)

Handles the BuildStarted event.

CustomEventHandler(Object, CustomBuildEventArgs)

Handles the CustomEventRaised event.

Equals(Object)

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

(Inherited from Object)
ErrorHandler(Object, BuildErrorEventArgs)

Handles the ErrorRaised event.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
Initialize(IEventSource)

Registers the logger for the specified events.

Initialize(IEventSource, Int32)

Registers the logger for the specified events.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MessageHandler(Object, BuildMessageEventArgs)

Handles the MessageRaised event.

ProjectFinishedHandler(Object, ProjectFinishedEventArgs)

Handles the ProjectFinished event.

ProjectStartedHandler(Object, ProjectStartedEventArgs)

Handles the ProjectStarted event.

Shutdown()

Stops the logger and releases all resources.

TargetFinishedHandler(Object, TargetFinishedEventArgs)

Handles the TargetFinished event.

TargetStartedHandler(Object, TargetStartedEventArgs)

Handles the TargetStarted event.

TaskFinishedHandler(Object, TaskFinishedEventArgs)

Handles the TaskFinished event.

TaskStartedHandler(Object, TaskStartedEventArgs)

Handles the TaskStarted event.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
WarningHandler(Object, BuildWarningEventArgs)

Handles the WarningRaised event.

Applies to