Index: main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py	(revision 9705)
+++ main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py	(revision 9706)
@@ -185,5 +185,5 @@
         return None
 
-    def updateEntry(self, obj, row, site):
+    def updateEntry(self, obj, row, site, filename):
         """Update obj to the values given in row.
         """
@@ -230,5 +230,5 @@
         # apply other values...
         items_changed += super(StudentProcessor, self).updateEntry(
-            obj, row, site)
+            obj, row, site, filename)
 
         # Log actions...
@@ -238,9 +238,13 @@
             # Create mode: the record contains the student_id
             parent.logger.info(
-                '%s - Student record updated: %s'
-                % (obj.student_id, items_changed))
+                '%s - %s - %s - updated: %s'
+                % (self.name, filename, obj.student_id, items_changed))
         else:
             # Create mode: the student does not yet exist
-            parent.logger.info('Student data imported: %s' % items_changed)
+            # XXX: It seems that this never happens because student_id
+            # is always set.
+            parent.logger.info(
+                '%s - %s - %s - imported: %s' 
+                % (self.name, filename, obj.student_id, items_changed))
         return items_changed
 
@@ -418,13 +422,13 @@
         return student.get('studycourse')
 
-    def updateEntry(self, obj, row, site):
+    def updateEntry(self, obj, row, site, filename):
         """Update obj to the values given in row.
         """
         items_changed = super(StudentStudyCourseProcessor, self).updateEntry(
-            obj, row, site)
+            obj, row, site, filename)
         parent = self.getParent(row, site)
         parent.__parent__.logger.info(
-            '%s - Study course updated: %s'
-            % (parent.student_id, items_changed))
+            '%s - %s - %s - updated: %s'
+            % (self.name, filename, parent.student_id, items_changed))
         # Update the students_catalog
         notify(grok.ObjectModifiedEvent(obj.__parent__))
@@ -503,13 +507,13 @@
         return
 
-    def updateEntry(self, obj, row, site):
+    def updateEntry(self, obj, row, site, filename):
         """Update obj to the values given in row.
         """
         items_changed = super(StudentStudyLevelProcessor, self).updateEntry(
-            obj, row, site)
+            obj, row, site, filename)
         student = self.getParent(row, site).__parent__
         student.__parent__.logger.info(
-            '%s - Study level updated: %s'
-            % (student.student_id, items_changed))
+            '%s - %s - %s - updated: %s'
+            % (self.name, filename, student.student_id, items_changed))
         return
 
@@ -574,14 +578,14 @@
         return level.get(row['code'])
 
-    def updateEntry(self, obj, row, site):
+    def updateEntry(self, obj, row, site, filename):
         """Update obj to the values given in row.
         """
         items_changed = super(CourseTicketProcessor, self).updateEntry(
-            obj, row, site)
+            obj, row, site, filename)
         parent = self.getParent(row, site)
         student = self.getParent(row, site).__parent__.__parent__
         student.__parent__.logger.info(
-            '%s - Course ticket in %s updated: %s'
-            % (student.student_id,  parent.level, items_changed))
+            '%s - %s - %s - %s - updated: %s'
+            % (self.name, filename, student.student_id, parent.level, items_changed))
         return
 
@@ -690,13 +694,13 @@
         return entry
 
-    def updateEntry(self, obj, row, site):
+    def updateEntry(self, obj, row, site, filename):
         """Update obj to the values given in row.
         """
         items_changed = super(StudentOnlinePaymentProcessor, self).updateEntry(
-            obj, row, site)
+            obj, row, site, filename)
         student = self.getParent(row, site).__parent__
         student.__parent__.logger.info(
-            '%s - Payment ticket updated: %s'
-            % (student.student_id, items_changed))
+            '%s - %s - %s - updated: %s'
+            % (self.name, filename, student.student_id, items_changed))
         return
 
@@ -798,5 +802,5 @@
         return None
 
-    def updateEntry(self, obj, row, site):
+    def updateEntry(self, obj, row, site, filename):
         """Update obj to the values given in row.
         """
@@ -804,5 +808,6 @@
         vals_to_set = dict((key, val) for key, val in row.items()
                            if key not in ('current_session','current_level'))
-        super(StudentVerdictProcessor, self).updateEntry(obj, vals_to_set, site)
+        super(StudentVerdictProcessor, self).updateEntry(
+            obj, vals_to_set, site, filename)
         parent = self.getParent(row, site)
         # Set current_vedict in corresponding studylevel
Index: main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py	(revision 9705)
+++ main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py	(revision 9706)
@@ -666,6 +666,7 @@
         # Logging message from updateEntry,
         self.assertTrue(
-            'INFO - system - K1000000 - Study level '
-            'updated: level=100, level_verdict=C, level_session=2009'
+            'INFO - system - StudentStudyLevel Processor - '
+            'sample_studylevel_data - K1000000 - updated: '
+            'level=100, level_verdict=C, level_session=2009'
             in logcontent)
 
@@ -788,9 +789,10 @@
         self.assertEqual(courseticket.semester, 1)
         shutil.rmtree(os.path.dirname(fin_file))
-
         logcontent = open(self.logfile).read()
         # Logging message from updateEntry,
         self.assertTrue(
-            'INFO - system - K1000000 - Course ticket in 100 updated: code=COURSE1, '
+            'INFO - system - CourseTicket Processor - '
+            'sample_courseticket_data - K1000000 - 100 - '
+            'updated: code=COURSE1, '
             'mandatory=False, score=3'
             in logcontent)
@@ -968,5 +970,6 @@
         # Logging message from updateEntry
         self.assertTrue(
-            'INFO - system - K1000001 - Payment ticket updated: '
+            'INFO - system - Student Payment Processor - '
+            'sample_payment_data - K1000001 - updated: '
             'p_item=BTECHBDT, creation_date=2010-02-15 13:19:01+00:00, '
             'p_category=schoolfee, amount_auth=19500.0, p_current=True, '
@@ -975,5 +978,6 @@
             in logcontent)
         self.assertTrue(
-            'INFO - system - K1000001 - Payment ticket updated: '
+            'INFO - system - Student Payment Processor - '
+            'sample_payment_data - K1000001 - updated: '
             'p_item=BTECHBDT, creation_date=2010-02-15 13:19:01+00:00, '
             'p_category=schoolfee, amount_auth=19500.6, p_current=True, '
@@ -1089,5 +1093,7 @@
         logcontent = open(self.logfile).read()
         self.assertMatches(
-            '... INFO - system - X666666 - Study course updated: current_verdict=0...',
+            '... INFO - system - Verdict Processor (special processor, '
+            'update only) - sample_verdict_data - X666666 - '
+            'updated: current_verdict=0...',
             logcontent)
         self.assertMatches(
