Merrill (and everyone), One of the "beauties" of the MailLogger was that it captured everything in the logfile. I took a look at the <record> task and I can select either Debug, Version, Info, Warning, or Error. What level do I choose if I want to mimick what the MailLogger did?
I still see a problem where the entire logfile does not show up in the body of the email. It's always being truncated, whether I do a MailLogger or simply <mail>. I think I read in another thread of why this occurs but I forgot when I read it and where. Maybe this can be fixed? I did use the nant.onsuccess and nant.onfailure properties. Felice -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Merrill Cornish Sent: Friday, October 08, 2004 10:59 AM To: Felice Vittoria; Ernst Kuschke; [EMAIL PROTECTED] Subject: RE: [Nant-users] Mailinging the build log Felice, There are two built-in NAnt properties: nant.onsuccess and nant.onfailure. Normally, they are not defined. However, you can set either or both to a target(s) in your script. If the overall NAnt build finishes successfully, then whatever task you have named in the nant.onsuccess property is run. Similarly, if the build fails, the task named in nant.onfailure runs. If you use the MailLogger or NantContrib <record>, then the onsuccess and onfailure tasks are the perfect place to "do something" with the log or record, such as emailing it somewhere. Sorry, I don't have an example of these tasks in my current script. Merrill ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users