13 Mar 2002 01:08
Re: Using Avalon/Logkit
Michael Gratton <mjg <at> recalldesign.com>
2002-03-13 00:08:16 GMT
2002-03-13 00:08:16 GMT
Keiron Liddle wrote: > > I think the are three possibilities: > - use a generic logging package such as found in avalon, it is quite > possible to use the LogkitLogger, Log4JLogger and Jdk14Logger True, but it introduces a dependency on Yet Another API (YAAPI). I'm generalizing here, but in my experience and from what I've picked up from other people in similar situations, is that keeping YAAPI bloat to a bare minimum is highly desirable. > - use an interface I see this as the most flexible method. > - use methods on the user agent I can see that this approach would provide some flexibility, but I'd suggest that the UA would be useful for obtaining an instance of the logging interface, rather than exposing methods for doing the actual error reporting itself, exactly as it does at the moment. > The interface almost guarantees that we will need extra code to do > things that everyone else is doing. I don't think the amount of extra code would be too great. It would require 2 additional source files right now: one for the interface, one for the default Logkit implementation. Both would be tiny.(Continue reading)
Fair enough, but I maintain that it's still too much work for embedders.
It is a right pain to have to have to include two more large libraries
(Avalon and Logkit) with your application just to let FOP do logging,
and it's too much functionality if your application has it's own logging
mechanism already.
I'd suggest it would be a poor move to lock FOP into using one
particular logging mechanism, especially when there are many
alternatives out there: Log4J, 1.4's native logging mechanism, and all
the existing, custom jobs, many of which have rabid supporters who won't
use anything else. 8)
RSS Feed