You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by ying lcs <yi...@gmail.com> on 2006/10/27 08:07:23 UTC

How to write log using jdbc appender

hi,

Log4j has a jdbc appender. But can i just queue up all the log entries
to the disk first. And at the end of the day everyday, It writes to
the Database?

Thank you.

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


Re: How to write log using jdbc appender

Posted by patrick <Pa...@mobilesolutions.ch>.
hi,

just a tought (this might be a stupid question from me):

why would you want to do that?

if you only have few requests i see no performance need to cache
if you have large ammounts of requests then you'll get a problem when you're
writing them to the DB at the end of the day. 
if you have large bursts of requests then i'd recon you'll be better off
using the AsyncAppender. 


cheers
patrick


ying lcs wrote:
> 
> hi,
> 
> Log4j has a jdbc appender. But can i just queue up all the log entries
> to the disk first. And at the end of the day everyday, It writes to
> the Database?
> 
> Thank you.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-write-log-using-jdbc-appender-tf2518754.html#a7029242
Sent from the Log4j - Users mailing list archive at Nabble.com.


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