logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <...@qos.ch>
Subject Re: EJB-JDBC Appender - Multiplying the log messages
Date Wed, 14 Mar 2001 11:14:16 GMT

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 <ksteppe@pacbell.net> 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: cgu@qos.ch (preferred)
CH-1005 Lausanne           ceki_gulcu@yahoo.com
Switzerland         Tel: ++41 21 351 23 15


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message