XmlLogger Class

Summary

Used to wrap log messages in xml <message/> elements.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IBuildLogger"] click Interface0 "/api/NAnt.Core/IBuildLogger" Type-.->Interface1["IBuildListener"] click Interface1 "/api/NAnt.Core/IBuildListener" Type-.->Interface2["ISerializable"] Type["XmlLogger"] class Type type-node

Syntax

[Serializable()]
public class XmlLogger : IBuildLogger, IBuildListener, ISerializable

Attributes

Type Description
SerializableAttribute

Constructors

Name Summary
XmlLogger() Initializes a new instance of the NAnt.Core.XmlLogger class.
XmlLogger(SerializationInfo, StreamingContext) Initializes a new instance of the NAnt.Core.XmlLogger class with serialized data.
XmlLogger(StopWatchStack) Initializes a new instance of the NAnt.Core.XmlLogger class.

Properties

Name Value Summary
EmacsMode bool
Gets or sets a value indicating whether to produce emacs (and other editor) friendly output.
OutputWriter TextWriter
Gets or sets the System.IO.TextWriter to which the logger is to send its output.
Threshold Level
Gets or sets the highest level of message this logger should respond to.

Methods

Name Value Summary
BuildFinished(Object, BuildEventArgs) void
Signals that the last target has finished.
BuildStarted(Object, BuildEventArgs) void
Signals that a build has started.
Flush() void
Flushes buffered build events or messages to the underlying storage.
GetObjectData(SerializationInfo, StreamingContext) void
Populates info with the data needed to serialize the NAnt.Core.XmlLogger instance.
IsJustWhiteSpace(string) bool
MessageLogged(Object, BuildEventArgs) void
Signals that a message has been logged.
StripFormatting(string) string
TargetFinished(Object, BuildEventArgs) void
Signals that a target has finished.
TargetStarted(Object, BuildEventArgs) void
Signals that a target has started.
TaskFinished(Object, BuildEventArgs) void
Signals that a task has finished.
TaskStarted(Object, BuildEventArgs) void
Signals that a task has started.
ToString() string
Returns the contents of log captured.