FileLogger FileLogger FileLogger FileLogger Class

Definizione

Estende la classe ConsoleLogger per consentire la registrazione dei messaggi in un file anziché nella finestra della console.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
Ereditarietà

Commenti

Scrive i messaggi in un file esattamente nello stesso formato dei ConsoleLogger messaggi di scrittura nella finestra della console. FileLoggerThe FileLogger writes messages to a file in exactly the same format as the ConsoleLogger writes messages to the console window.

Costruttori

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

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

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.

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

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

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

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

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

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

(Inherited from ConsoleLogger)
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.

(Inherited from ConsoleLogger)
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.

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

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

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

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

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

Interrompe il logger, rilascia tutte le risorse e chiude il file in cui il logger esegue la scrittura.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)

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

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

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

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

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

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

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

(Inherited from ConsoleLogger)
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.

(Inherited from ConsoleLogger)

Proprietà

Parameters Parameters Parameters Parameters

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

(Inherited from 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.

(Inherited from ConsoleLogger)
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.

(Inherited from ConsoleLogger)
Verbosity Verbosity Verbosity Verbosity

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

(Inherited from ConsoleLogger)
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.

(Inherited from ConsoleLogger)

Si applica a