Hey Paul, Paul Hammant wrote:
I think that if you have an avalon component, it makes sense to always have it implement LogEnabled, especially for debug(). I always have loads and loads of debug() in my components. I see this as a real simple IoC listener mechanism where you pass in NullLogger if you don't want to listen.We use A-F logging in AltRMI of course.However I am beginning to thing that no reusable bean/comp should log in its own right. Logging should be the choice of an /application/ maker. If a reusable bean or reusable comp has issues, they should be thrown as exceptions. If they have warnings, there should be a monitor/listener mechanism (if the bean/comp user wants to monitor/listen). If there is info, then the listener is the same solution. I'm going to look at this, and maybe change AltRMI to use such a design. I'll of course supply default adapters (to A-F logging etc), but it would snip a mandatory association with Avalon for AltRMI.
For places where I don't use A-F, I usually send everything up to [WARN] to some static logger or common base class (ie commons-logging style), and throw exceptions for the rest. I find this easier to follow. Especially for what is mostly a failure detection mechanism, it makes sense to KISS. Every line of logging facilitation code is one too many ;)
I guess what I'm saying is that while I agree with the principle, I find the listener mechanism to be too complex in practice.
just 2pc.
only thoughts, can't come up with a recommendation or suggestions.As such this puppy could move to Incubator. It does actually have quite a use, but as with most Avalon stuff, tied up companies who can't stick their necks out. Thoughts?
I am a happy AltRMI user. I don't get the internals (I really need to read the java language spec ;) so I don't help in development. I suspect there's lots of people like me; as such altrmi deserves lots of publicity so everyone can enjoy it.
I suspect there's also loads of people who enjoy working on challenging projects like altrmi. As such, it deserves publicity so that those people learn it exists.
Based on that, I think altrmi deserves to be a top-level project. Maybe incubator is a good way to get it there. Maybe just more aggressive publicity and keeping it @ avalon. I am simply not sure.
cheers,
- Leo
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
