Index: trunk/ippScripts/scripts/detrend_stack.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_stack.pl	(revision 14115)
+++ trunk/ippScripts/scripts/detrend_stack.pl	(revision 15387)
@@ -117,4 +117,7 @@
 my $outputStats = $outputRoot . '.stats'; # Statistics name
 
+my $traceDest = 'file:' . $ipprc->file_resolve($outputRoot) . "$class_id.trace"; # Trace messages
+my $logDest = 'file:' . $ipprc->file_resolve($outputRoot) . "$class_id.log"; # Log messages
+
 $command = "$ppMerge $outputStack"; # Command to run
 foreach my $file (@$files) {
@@ -125,4 +128,5 @@
 $command .= " -stats $outputStats";	# Statistics output filename
 $command .= " -recipe PPSTATS CHIPSTATS";
+$command .= " -tracedest $traceDest -log $logDest";
 
 # Stack the files
