[ZendTo] zendto.log

Brad Beckenhauer bbecken at aafp.org
Fri Sep 17 18:01:10 BST 2010


I was looking at the zendto.log and considering howto to find out our top 10 Zendto users and it wasn't immediately clear to me from the zendto.log when a new package was dropped off.
 
I modified the NSSDropoff.php file so the log file text Clearly states when a success full dropoff occurs which would make parsing the log file easier.
 
Does anyone else have a script to parse the zendto.log and compile a list of users for summary information?
 
 
thanks
Brad
 
 
--- NSSDropoff.php.old  2010-09-17 11:51:24.000000000 -0500
+++ NSSDropoff.php      2010-09-17 11:51:43.000000000 -0500
@@ -1375,7 +1375,7 @@
         }
 
         //  Log our success:
-        $this->_dropbox->writeToLog(sprintf("$senderName <$senderEmail> => $claimID [%s]",
+        $this->_dropbox->writeToLog(sprintf("Successfull dropoff by: $senderName <$senderEmail> claimID: $claimID [%s]",
                                      ( $realFileCount == 1 ? "1 file" : "$realFileCount files" )));
       } else {
         return $smarty->getConfigVariable('ErrorAddDropoff');
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20100917/0728fb38/attachment.html 


More information about the ZendTo mailing list