User Tools

Site Tools


dr:logging

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dr:logging [2006/04/09 15:58] fgmdr:logging [2020/11/23 17:23] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Logging module ====== ====== Logging module ======
 +
  
 ===== The suggestion ===== ===== The suggestion =====
Line 55: Line 56:
   </code>   </code>
   *  Eventually recorder functions fulfill their recording contract as they wish using the original function arguments. Having the recordee name as first parameter allows the recorder function to be potentially unique for several recordees.   *  Eventually recorder functions fulfill their recording contract as they wish using the original function arguments. Having the recordee name as first parameter allows the recorder function to be potentially unique for several recordees.
 +
 +===== Tuning =====
 +
 +An objection to this mechanism is the obvious cost of logging over situations without logging. This could be alleviated by switching the recording pairs on and off as a logging module setting. Instead of logging pairs and always invoking the recorder, the module could store a "on/off" setting for each pair, defined in admin/settings/logging. 
 +
 +That way, recordee could still send recording notifications, but they would be cut off at the logging module level before reaching the recorders if the site admin thinks he doesn't need them.
  
 ===== Why bother ? ===== ===== Why bother ? =====
dr/logging.1144598326.txt.gz · Last modified: 2020/11/23 17:23 (external edit)