Monday, January 24, 2005

logging using event delegation

Nat Pryce in this post talks about how to use events and delegation to log and monitor. The post talks pretty clearly about how exceptions can be caught and instead of being logged directly which will reduce cohesion and incerase clutter be passed as events to a delegator which can eventually use the logging frameworks to do the needful. In a way there is a clear seperation of logic and presentation in this idea. The only problem I see here is the additional effort (and time) required to do this. Maybe the idea of delegation can be used many other similar places too where it is not being used now.


Post a Comment

<< Home