How many times are you configuring log4j? Are you positely sure that it's just once. 
Ceki

At 18:32 13.03.2001 -0800, Thomas Kuruvilla wrote:
>thank you Kevin,
>
>it works pefectly with JDBCAppenderObject.append()...
>I think something wrong with log4j. Ceki can you help 
>to figure out what it is ?
>
>
>~thomas
>
>
>--- Kevin Steppe <ksteppe@pac
>bell.net> wrote:
>> I would try replacing the Category.log(...) with
>> JDBCAppenderObject.append(...) and see if it stills
>> logs extra times.
>> If it still does then the problem is with the EJB
>> container or the
>> bean.  If it makes only one log after that change
>> then log4j is the
>> problem, in which case you should bring it up with
>> Ceki.
>> 
>> Kevin
>> 
>> 
>> Thomas Kuruvilla wrote:
>> 
>> > Hi Kevin,
>> >
>> > I'm trying to log a single debug message to DB, so
>> it
>> > calls append method in JDBCAppender once and logs
>> the
>> > message, but when I run the client application
>> again
>> > two times 'append' method is called, and in the
>> third
>> > time 3 times append method is called and so on. I
>> > debugged the session bean it makes calls properly.
>> is
>> > there configuration required in log4j category or
>> > something to avoid this extra method calls ?
>> >
>> > thanks,
>> >
>> > Regards
>> > ~Binu
>> >
>> > --- Kevin <[EMAIL PROTECTED]> wrote:
>> > > For the moment I'm stumped.  The only thing in
>> > > JDBCAppender
>> > > which could cache messages is
>> JDBCAppender.buffer
>> > > (an
>> > > ArrayList), however it is cleared after ever
>> > > successful
>> > > flushing of the buffer which is the only way
>> you'd
>> > > see
>> > > messages in the DB.  I'll do some more reading
>> in
>> > > the
>> > > morning (PST) and see if I can come up with
>> > > anything.
>> > >
>> > > Kevin
>> > >
>> > >
>> >
>> > __________________________________________________
>> > Do You Yahoo!?
>> > Yahoo! Auctions - Buy the things you want at great
>> prices.
>> > http://auctions.yahoo.com/
>> 
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Auctions - Buy the things you want at great prices.
>http://auctions.yahoo.com/


I hope to see you at my ApacheCon 2001 presentation 
entitled "Log4j, A Logging Package for Java".

See http://ApacheCon.Com/2001/US/ for more details.

----
Ceki Gülcü          Web:   http://qos.ch     
av. de Rumine 5     email: [EMAIL PROTECTED] (preferred)
CH-1005 Lausanne           [EMAIL PROTECTED]
Switzerland         Tel: ++41 21 351 23 15


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to