ConsoleLogger ConsoleLogger ConsoleLogger ConsoleLogger Class

Definizione

Implementa il logger della console standard che invia i dati degli eventi alla finestra della console durante una compilazione.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
Ereditarietà
ConsoleLoggerConsoleLoggerConsoleLoggerConsoleLogger
Derivato
Implementazioni

Costruttori

ConsoleLogger() ConsoleLogger() ConsoleLogger() ConsoleLogger()

Inizializza una nuova istanza della classe ConsoleLogger.Initializes a new instance of the ConsoleLogger class.

ConsoleLogger(LoggerVerbosity) ConsoleLogger(LoggerVerbosity) ConsoleLogger(LoggerVerbosity) ConsoleLogger(LoggerVerbosity)

Inizializza una nuova istanza della classe ConsoleLogger con l'oggetto LoggerVerbosity specificato.Initializes a new instance of the ConsoleLogger class with the specified LoggerVerbosity.

ConsoleLogger(LoggerVerbosity, WriteHandler, ColorSetter, ColorResetter) ConsoleLogger(LoggerVerbosity, WriteHandler, ColorSetter, ColorResetter) ConsoleLogger(LoggerVerbosity, WriteHandler, ColorSetter, ColorResetter) ConsoleLogger(LoggerVerbosity, WriteHandler, ColorSetter, ColorResetter)

Inizializza una nuova istanza della classe ConsoleLogger con i valori di LoggerVerbosity, ColorSetter e ColorResetter specificati.Initializes a new instance of the ConsoleLogger class with the specified LoggerVerbosity, ColorSetter, and ColorResetter values.

Proprietà

Parameters Parameters Parameters Parameters

Ottiene o imposta i parametri passati alla classe ConsoleLogger.Gets or sets the parameters passed to the ConsoleLogger.

ShowSummary ShowSummary ShowSummary ShowSummary

Ottiene o imposta un valore che indica se il logger deve visualizzare un riepilogo degli errori e degli avvisi.Gets or sets a value indicating whether the logger will display a summary of errors and warnings.

SkipProjectStartedText SkipProjectStartedText SkipProjectStartedText SkipProjectStartedText

Ottiene o imposta un valore che indica se il logger deve visualizzare un messaggio quando vengono avviati nuovi progetti durante la compilazione.Gets or sets a value indicating whether the logger will display messages when new projects are started during the build.

Verbosity Verbosity Verbosity Verbosity

Ottiene o imposta il livello LoggerVerbosity del logger.Gets or sets the LoggerVerbosity level of the logger.

WriteHandler WriteHandler WriteHandler WriteHandler

Ottiene o imposta il delegato WriteHandler da utilizzare per la classe ConsoleLogger.Gets or sets to the WriteHandler delegate for the ConsoleLogger.

Metodi

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

Aggiunge al logger il nome e il valore specificati per il parametro.Adds the specified parameter name and value to the logger.

BuildFinishedHandler(Object, BuildFinishedEventArgs) BuildFinishedHandler(Object, BuildFinishedEventArgs) BuildFinishedHandler(Object, BuildFinishedEventArgs) BuildFinishedHandler(Object, BuildFinishedEventArgs)

Consente di gestire l'evento BuildFinished.Handles the BuildFinished event.

BuildStartedHandler(Object, BuildStartedEventArgs) BuildStartedHandler(Object, BuildStartedEventArgs) BuildStartedHandler(Object, BuildStartedEventArgs) BuildStartedHandler(Object, BuildStartedEventArgs)

Consente di gestire l'evento BuildStarted.Handles the BuildStarted event.

CustomEventHandler(Object, CustomBuildEventArgs) CustomEventHandler(Object, CustomBuildEventArgs) CustomEventHandler(Object, CustomBuildEventArgs) CustomEventHandler(Object, CustomBuildEventArgs)

Consente di gestire l'evento CustomEventRaised.Handles the CustomEventRaised event.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina se l'oggetto specificato è uguale all'oggetto corrente.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)

Consente di gestire l'evento ErrorRaised.Handles the ErrorRaised event.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Funge da funzione hash predefinita.Serves as the default hash function.

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

Ottiene l'oggetto Type dell'istanza corrente.Gets the Type of the current instance.

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

Registra il logger per gli eventi specificati.Registers the logger for the specified events.

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

Registra il logger per gli eventi specificati.Registers the logger for the specified events.

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

Crea una copia superficiale dell'oggetto Object corrente.Creates a shallow copy of the current Object.

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

Consente di gestire l'evento MessageRaised.Handles the MessageRaised event.

ProjectFinishedHandler(Object, ProjectFinishedEventArgs) ProjectFinishedHandler(Object, ProjectFinishedEventArgs) ProjectFinishedHandler(Object, ProjectFinishedEventArgs) ProjectFinishedHandler(Object, ProjectFinishedEventArgs)

Consente di gestire l'evento ProjectFinished.Handles the ProjectFinished event.

ProjectStartedHandler(Object, ProjectStartedEventArgs) ProjectStartedHandler(Object, ProjectStartedEventArgs) ProjectStartedHandler(Object, ProjectStartedEventArgs) ProjectStartedHandler(Object, ProjectStartedEventArgs)

Consente di gestire l'evento ProjectStarted.Handles the ProjectStarted event.

Shutdown() Shutdown() Shutdown() Shutdown()

Interrompe il logger e rilascia tutte le risorse.Stops the logger and releases all resources.

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

Consente di gestire l'evento TargetFinished.Handles the TargetFinished event.

TargetStartedHandler(Object, TargetStartedEventArgs) TargetStartedHandler(Object, TargetStartedEventArgs) TargetStartedHandler(Object, TargetStartedEventArgs) TargetStartedHandler(Object, TargetStartedEventArgs)

Consente di gestire l'evento TargetStarted.Handles the TargetStarted event.

TaskFinishedHandler(Object, TaskFinishedEventArgs) TaskFinishedHandler(Object, TaskFinishedEventArgs) TaskFinishedHandler(Object, TaskFinishedEventArgs) TaskFinishedHandler(Object, TaskFinishedEventArgs)

Consente di gestire l'evento TaskFinished.Handles the TaskFinished event.

TaskStartedHandler(Object, TaskStartedEventArgs) TaskStartedHandler(Object, TaskStartedEventArgs) TaskStartedHandler(Object, TaskStartedEventArgs) TaskStartedHandler(Object, TaskStartedEventArgs)

Consente di gestire l'evento TaskStarted.Handles the TaskStarted event.

ToString() ToString() ToString() ToString()

Restituisce una stringa che rappresenta l'oggetto corrente.Returns a string that represents the current object.

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

Consente di gestire l'evento WarningRaised.Handles the WarningRaised event.

Si applica a