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::ILogger
public ref class ConsoleLogger : Microsoft::Build::Framework::INodeLogger
public class ConsoleLogger : Microsoft.Build.Framework.ILogger
public class ConsoleLogger : Microsoft.Build.Framework.INodeLogger
type ConsoleLogger = class
    interface ILogger
type ConsoleLogger = class
    interface INodeLogger
    interface ILogger
Public Class ConsoleLogger
Implements 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.

ErrorHandler(Object, BuildErrorEventArgs)

Handles the ErrorRaised event.

Initialize(IEventSource)

Registers the logger for the specified events.

Initialize(IEventSource, Int32)

Registers the logger for the specified events.

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.

WarningHandler(Object, BuildWarningEventArgs)

Handles the WarningRaised event.

Applies to