Summary
Buffers log messages from DefaultLogger, and sends an e-mail with the
results.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core - Interfaces
- Base Types
-
- Object
- DefaultLogger
graph BT
Type-->Base0["DefaultLogger"]
click Base0 "/api/NAnt.Core/DefaultLogger"
Base0-->Base1["Object"]
Type-.->Interface0["IBuildLogger"]
click Interface0 "/api/NAnt.Core/IBuildLogger"
Type-.->Interface1["IBuildListener"]
click Interface1 "/api/NAnt.Core/IBuildListener"
Type["MailLogger"]
class Type type-node
Syntax
[Serializable()]
public class MailLogger : DefaultLogger, IBuildLogger, IBuildListener
Remarks
The following properties are used to send the mail :
Description Mail server to use. [default: localhost] The address of the e-mail sender. Send build failure e-mails ? [default: true] Send build success e-mails ? [default: true] The address to send build failure messages to. The address to send build success messages to. The subject of build failure messages. [default: "Build Failure"] The subject of build success messages. [default: "Build Success"] The ID of a fileset holdng set of files to attach when the build is successful. The ID of a fileset holdng set of files to attach when the build fails. The encoding type of the body of the e-mail message. [default: system's ANSI code page] The name of the user to login to the SMTP server. The password of the specified user. Specifies whether to use SSL to encrypt the connection. [default: false] The SMTP server port to connect to. [default: 25]
Property |
---|
MailLogger.mailhost |
MailLogger.from |
MailLogger.failure.notify |
MailLogger.success.notify |
MailLogger.failure.to |
MailLogger.success.to |
MailLogger.failure.subject |
MailLogger.success.subject |
MailLogger.success.attachments |
MailLogger.failure.attachments |
MailLogger.body.encoding |
MailLogger.smtp.username |
MailLogger.smtp.password |
MailLogger.smtp.enablessl |
MailLogger.smtp.port |
Attributes
Type | Description |
---|---|
Serializable |
Constructors
Name | Summary |
---|---|
MailLogger |
Initializes a new instance of the NAnt.Core.MailLogger
class.
|
Properties
Name | Value | Summary |
---|---|---|
EmacsMode | bool |
Gets or sets a value indicating whether to produce emacs (and other
editor) friendly output.
Inherited from DefaultLogger
|
OutputWriter | TextWriter |
Gets or sets the
System.IO.TextWriter to which the logger is
to send its output.
Inherited from DefaultLogger
|
Threshold | Level |
Gets or sets the highest level of message this logger should respond
to.
Inherited from DefaultLogger
|
Methods
Name | Value | Summary |
---|---|---|
BuildFinished |
void |
Signals that the last target has finished, and send an e-mail with
the build results.
|
BuildStarted |
void |
Signals that a build has started.
|
Flush |
void |
Flushes buffered build events or messages to the underlying storage.
Inherited from DefaultLogger
|
Log |
void |
Receives and buffers log messages.
|
MessageLogged |
void |
Signals that a message has been logged.
Inherited from DefaultLogger
|
TargetFinished |
void |
Signals that a task has finished.
Inherited from DefaultLogger
|
TargetStarted |
void |
Signals that a target has started.
Inherited from DefaultLogger
|
TaskFinished |
void |
Signals that a task has finished.
Inherited from DefaultLogger
|
TaskStarted |
void |
Signals that a task has started.
Inherited from DefaultLogger
|