Question

I am using MailLogger to send a message about a failed/successful release. I would like to make the mail body simple and easy to read. How can I suppress output for some particular tasks?

Was it helpful?

Solution

Another option would be to use the xmllogger instead of the maillogger, to output an xml file which can then be processed using a xslt stylesheet. Use the stylesheet to filter out information you don't need. If you want it to be mailed to your inbox you could use the mail task from nant and include the transformed file as an attachment or if you transformed it to txt/html you could also use it to fill the body.

OTHER TIPS

Would it be too simple if you'd call nant with the -quiet switch?

EDIT: and for the tasks whose output you are interested in you can set the verbose attribute to true.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top