> -----Original Message-----
> From: somik [mailto:so...@ya...]
> Sent: Tuesday, December 17, 2002 12:11 PM
> To: htmlparser-developer
> Cc: somik
> Subject: Logging (Was: [Htmlparser-developer] version 1.3)
>
>
> Great to have a discussion going! I'd like to branch off all
> the issues into
> seperate threads so that we could deal with them seperately.
>
> > > Logging
> > > The use of a feedback object is adequate, but JDK version
> 1.4 has a
> > > rich API, java.util.logging, that we might want to
> emulate (presuming
> > > we don't want to force JDK 1.4 usage).
> >
> > I would be against forcing JDK 1.4 usage. I would recommend log4j
> > http://jakarta.apache.org/log4j/docs/index.html
> >
>
> Using either JDK 1.4 or log4j ties you down to a specific
> logging API. The
> latter will add to the weight of the parser. (I was actually
> considering
> log4j sometime back, but Claude Duguay convinced me otherwise)
>
> If however, more logging support is needed, I guess it could
> be added using
> a facade (or adapter) with JDK 1.4 (or log4j), externally. This is of
> course open to discussion.
>
eah, I think that is a good idea. Have an interface for logging and
allow people to plugin their own implementations. Default console-based,
JDK 1.4 and Log4j based can be provided.
|