> ----- Original Message ----- > From: "Nick Varacalli" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, September 30, 2003 7:00 PM > Subject: [Nant-users] Nant Plain Text Logging >
> nAnt 0.83 final, .Net Framework 1.1. > > A few quick questions: > > * Is there a way to get nAnt to send output to both the console and to a > file? I know how to do XML logging, I'm looking for plain text logging. use the -logfile command line argument eg. nant.exe -buildfile:nant.build -logfile:output.log > * In script, I can do Console.Writeline to write to the console. However, > that doesn't respect the logger and the logfile switches. What object should > I be using instead? see the examples in http://nant.sourceforge.net/nightly/help/tasks/scripttask.html. > > * I want to email the build log to an internal mailing list when the build > is done. use the NAnt.Core.MailLogger instead : NAnt.exe -buildfile:.... -logger:NAnt.Core.MailLogger you need to configure the MailLogger using a predefined set of properties in your buildfile (see the NAnt SDK docs for more information) : <property name="MailLogger.mailhost" value="mail.dunnowhat.com" /> <property name="MailLogger.from" value="[EMAIL PROTECTED]" /> <property name="MailLogger.failure.notify" value="true" /> <property name="MailLogger.success.notify" value="true" /> <property name="MailLogger.failure.to" value="[EMAIL PROTECTED]" /> <property name="MailLogger.success.to" value="[EMAIL PROTECTED]" /> <property name="MailLogger.failure.subject" value="build failure" /> <property name="MailLogger.success.subject" value="build success" /> Hope this helps, Gert ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users