> > Sorry to step in late but has anyone considered the use of a generic
> > event callback interface for use in monitoring.
> If a library has a couple of major events that it can report, then
> callbacks are a nice idea.
> However I see logging as something *pervasive*. Libraries like log4j
> make logging very quick
Where does that differ? What Alex seems to be suggesting is that the
logging behavior be moved from the component to a "helper" component. The
logging helper (monitor) exposes a higher-level and component-specific
semantic. The question appears to be who translates the event into a log
item, and calls something to emit that item. In Alex's proposal, it would
be the monitor.
> Every object that wants to log needs to have an addMonitor method on it.
That's standard IoC. But propose another way for the object to get its
monitor. I don't think that's the key difference.
--- Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]