[Htmlparser-developer] ParserFeedback mechanism
Brought to you by:
derrickoswald
From: <dha...@or...> - 2003-05-02 08:18:45
|
Hi guys, I remember we had a discussion about the feedback mechanism earlier. I just wanted to restart it by suggesting use of the Logging Wrapper from Jakarta. I have noticed that if anyone wants to use the ParserFeedback to log then they will need to mostly extend the DefaultParserFeedback class and override the methods appropriately. If we can map the ParserFeedback class to the Logging Wrapper applications can easily use the Feedback mechanism to log to Log4j and JDK 1.4 without having to do a thing. most users according tome woudl be using one of these systems. I believe the argument then was coupling with a third-party library. But I believe the flexibility it offers outstrips the coupling drawback. Furthermore imagine an application which is using some other logging tool. They have coded their entire logging framework using the Logging Wrapper and have used an adapter to log to their logging tool. If they use the parser and want to log its output as well, they will have to write one more adapter. Instead if the parser provides a mechanism for using the Logging Wrapper, they would not need to do anything. We ahve actually had requests wherein different clients have asked for different logging tools to be used!!! Hence the request. We could simply extend from DefaultParserFeedback for LogWrapperFeedback and make it implement the commons logging interface. Do let me know your thoughts/opinions/suggestions on the same. Regards, Dhaval |