Index: /trunk/tools/ipp_apply_burntool.pl
===================================================================
--- /trunk/tools/ipp_apply_burntool.pl	(revision 24678)
+++ /trunk/tools/ipp_apply_burntool.pl	(revision 24679)
@@ -20,5 +20,5 @@
 use Pod::Usage qw( pod2usage );
 
-my ( $class_id, $dateobs_begin, $dateobs_end, $skip_burned, $dbname, $verbose, $save_temps);
+my ( $class_id, $dateobs_begin, $dateobs_end, $skip_burned, $dbname, $logfile, $verbose, $save_temps);
 GetOptions(
     'class_id=s'        => \$class_id, # chip identifier
@@ -26,4 +26,5 @@
     'dateobs_end=s'     => \$dateobs_end, # exposure date/time range stop
     'dbname|d=s'        => \$dbname, # Database name
+    'logfile=s'         => \$logfile,
     'skip_burned'       => \$skip_burned,   # Print to stdout
     'verbose'           => \$verbose,   # Print to stdout
@@ -86,4 +87,6 @@
 # IPP configuration (including nebulous)
 my $ipprc = PS::IPP::Config->new() or my_die("Unable to set up");
+
+$ipprc->redirect_output($logfile) if $logfile;
 
 my $Nfiles = @files;
@@ -172,4 +175,5 @@
             &my_die("failed to update imfile");
         }
+        print "\n";
     }
     # save the artifact file for the next image
@@ -179,5 +183,4 @@
 	$prevFileOpt = "infits=$artImfileReal";
     }
-    print "\n";
 }
 
