Re: Logkit

Peter Donald <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.apps.devel,gmane.comp.jakarta.avalon.devel
Message-ID <[email protected]>
On Mon, 9 Dec 2002 19:54, Patteet Marc wrote:
> I just want to submit a small "bug" in the Logkit application.
> If you make an Array LogTargets[] of, for example two, elements and you
> only assign one LogTarget then the Logger methods(debug, info, ...) return
> a NullPointer Exception although the logging is executed well.
> So perhaps the Logger class should perform a check for this.

sounds good to me!

> Also maybe a suggestion for a next release: a database LogTarget ?

There is two already - one for normalized tables and one for denormalized 
tables. Have a look at

org.apache.log.output.db.DefaultJDBCTarget
org.apache.log.output.db.NormalizedJDBCTarget

for an example of their setup have a look at 

src/test/org/apache/log/output/test/DBTargetTestCase.java

-- 
Cheers,

Peter Donald
*----------------------------------------------------*
|    "the mother of idiots is always pregnant."      |
*----------------------------------------------------*
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.