Simple scenario:

instantiate logger and appender vars; add properties to appender, including 
a buffersize of 10 (when buffer has 10 events, flush these to the 
database); configure logger with the appender.  Log events and then call 
the appender.finalize() method: all events arrive in the database.

Now, real world:

Log4JInit servlet to start up log4j and configure JDBCAppender.  Http 
request generates logger events: 2 warnings and 1 fatal, an error page is 
displayed to the user (cannot continue).  Buffersize max of 10 not reached, 
events not sent to the database.

Questions:

When is the finlalize method called to clean up the appender?
Can this be forced?
Is there a way of coding: 'when http request completes [page sent back to 
browser], finalize'?

See also: 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg09363.html

Many thanks

Francis Le Monnier


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

Reply via email to