C# Class NAnt.Core.DefaultLogger

Inheritance: IBuildLogger
Afficher le fichier Open project: skolima/NAnt Class Usage Examples

Méthodes publiques

Méthode Description
BuildFinished ( object sender, BuildEventArgs e ) : void

Signals that the last target has finished.

This event will still be fired if an error occurred during the build.

BuildStarted ( object sender, BuildEventArgs e ) : void

Signals that a build has started.

This event is fired before any targets have started.

DefaultLogger ( ) : System

Initializes a new instance of the DefaultLogger class.

Flush ( ) : void

Flushes buffered build events or messages to the underlying storage.

MessageLogged ( object sender, BuildEventArgs e ) : void

Signals that a message has been logged.

Only messages with a priority higher or equal to the threshold of the logger will actually be output in the build log.

TargetFinished ( object sender, BuildEventArgs e ) : void

Signals that a task has finished.

This event will still be fired if an error occurred during the build.

TargetStarted ( object sender, BuildEventArgs e ) : void

Signals that a target has started.

TaskFinished ( object sender, BuildEventArgs e ) : void

Signals that a task has finished.

This event will still be fired if an error occurred during the build.

TaskStarted ( object sender, BuildEventArgs e ) : void

Signals that a task has started.

Méthodes protégées

Méthode Description
Log ( string message ) : void

Empty implementation which allows derived classes to receive the output that is generated in this logger.

Private Methods

Méthode Description
CreateBuildEvent ( Level messageLevel, string message ) : BuildEventArgs
OutputMessage ( BuildEventArgs e ) : void

Outputs an indented message to the build log if its priority is greather than or equal to the Threshold of the logger.

OutputMessage ( BuildEventArgs e, int indentationLength ) : void

Outputs an indented message to the build log if its priority is greather than or equal to the Threshold of the logger.

OutputMessage ( Level messageLevel, string message, int indentationLength ) : void

Outputs an indented message to the build log if its priority is greather than or equal to the Threshold of the logger.

Method Details

BuildFinished() public méthode

Signals that the last target has finished.
This event will still be fired if an error occurred during the build.
public BuildFinished ( object sender, BuildEventArgs e ) : void
sender object The source of the event.
e BuildEventArgs A object that contains the event data.
Résultat void

BuildStarted() public méthode

Signals that a build has started.
This event is fired before any targets have started.
public BuildStarted ( object sender, BuildEventArgs e ) : void
sender object The source of the event.
e BuildEventArgs A object that contains the event data.
Résultat void

DefaultLogger() public méthode

Initializes a new instance of the DefaultLogger class.
public DefaultLogger ( ) : System
Résultat System

Flush() public méthode

Flushes buffered build events or messages to the underlying storage.
public Flush ( ) : void
Résultat void

Log() protected méthode

Empty implementation which allows derived classes to receive the output that is generated in this logger.
protected Log ( string message ) : void
message string The message being logged.
Résultat void

MessageLogged() public méthode

Signals that a message has been logged.
Only messages with a priority higher or equal to the threshold of the logger will actually be output in the build log.
public MessageLogged ( object sender, BuildEventArgs e ) : void
sender object The source of the event.
e BuildEventArgs A object that contains the event data.
Résultat void

TargetFinished() public méthode

Signals that a task has finished.
This event will still be fired if an error occurred during the build.
public TargetFinished ( object sender, BuildEventArgs e ) : void
sender object The source of the event.
e BuildEventArgs A object that contains the event data.
Résultat void

TargetStarted() public méthode

Signals that a target has started.
public TargetStarted ( object sender, BuildEventArgs e ) : void
sender object The source of the event.
e BuildEventArgs A object that contains the event data.
Résultat void

TaskFinished() public méthode

Signals that a task has finished.
This event will still be fired if an error occurred during the build.
public TaskFinished ( object sender, BuildEventArgs e ) : void
sender object The source of the event.
e BuildEventArgs A object that contains the event data.
Résultat void

TaskStarted() public méthode

Signals that a task has started.
public TaskStarted ( object sender, BuildEventArgs e ) : void
sender object The source of the event.
e BuildEventArgs A object that contains the event data.
Résultat void