This is related to the prior item. It was pretty painful to get the indent
directive working and something that helped a lot was when I added a LOT of
log messages.

This seems like something that would be useful to anyone else writing a new
Directive, esp. if it also includes some more detailed documentation over
exactly what should be seen and what it means.

An alternate approach is to implement this as a Proxy. This allows
the Directive object to log *all* calls, not just the ones you expect, and
could easily be used with an actual implementation when a question arises.
(I would prefer AOP but since we can't rely on it being present...)

I don't know if there would be a perceived need for this, or even a good
name if it's a directive. (PrototypeDirective?). A logical name for a proxy
would be a LoggingProxy.

Bear Giles

Reply via email to