C# Класс NAnt.Core.XmlLogger

Наследование: IBuildLogger, ISerializable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Flush ( ) : void

Flushes buffered build events or messages to the underlying storage.

GetObjectData ( SerializationInfo info, StreamingContext context ) : void

Populates info with the data needed to serialize the XmlLogger instance.

IsJustWhiteSpace ( string message ) : bool
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.

StripFormatting ( string message ) : string
TargetFinished ( object sender, BuildEventArgs e ) : void

Signals that a target 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.

ToString ( ) : string

Returns the contents of log captured.

XmlLogger ( ) : System

Initializes a new instance of the XmlLogger class.

XmlLogger ( StopWatchStack stopWatchStack ) : System

Защищенные методы

Метод Описание
XmlLogger ( SerializationInfo info, StreamingContext context ) : System

Initializes a new instance of the XmlLogger class with serialized data.

Приватные методы

Метод Описание
IsValidXml ( string message ) : bool
StripCData ( string message ) : string
WriteDuration ( ) : void
WriteErrorNode ( Exception exception ) : void
WriteNameAttribute ( string name ) : void

Описание методов

BuildFinished() публичный Метод

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.
Результат void

BuildStarted() публичный Метод

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.
Результат void

Flush() публичный Метод

Flushes buffered build events or messages to the underlying storage.
public Flush ( ) : void
Результат void

GetObjectData() публичный Метод

Populates info with the data needed to serialize the XmlLogger instance.
public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo The to populate with data.
context System.Runtime.Serialization.StreamingContext The destination for this serialization.
Результат void

IsJustWhiteSpace() публичный Метод

public IsJustWhiteSpace ( string message ) : bool
message string
Результат bool

MessageLogged() публичный Метод

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.
Результат void

StripFormatting() публичный Метод

public StripFormatting ( string message ) : string
message string
Результат string

TargetFinished() публичный Метод

Signals that a target 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.
Результат void

TargetStarted() публичный Метод

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.
Результат void

TaskFinished() публичный Метод

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.
Результат void

TaskStarted() публичный Метод

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.
Результат void

ToString() публичный Метод

Returns the contents of log captured.
public ToString ( ) : string
Результат string

XmlLogger() публичный Метод

Initializes a new instance of the XmlLogger class.
public XmlLogger ( ) : System
Результат System

XmlLogger() защищенный Метод

Initializes a new instance of the XmlLogger class with serialized data.
protected XmlLogger ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo The that holds the serialized object data.
context System.Runtime.Serialization.StreamingContext The that contains contextual information about the source or destination.
Результат System

XmlLogger() публичный Метод

public XmlLogger ( StopWatchStack stopWatchStack ) : System
stopWatchStack NAnt.Core.Util.StopWatchStack
Результат System