logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: Buffering Questions: msg#00032

apache.logging.log4cxx.user

Subject: Re: Buffering Questions

Hello the option ImmediateFlush force each new log event to be written
immediately to the file. It can degrade performances, but if your application
crashes, the log file is up to date.

The bufferSize option is not implemented still the stl ofstream does not
implement it.

Regards,

Michaël

Christophe de VIENNE wrote:
Hi,

Barak Simon wrote:

Hi,
The following questions are about FileAppender and AsyncAppender buffering:

1. I found an example of how to configure the FileAppender to buffer the logging events:

<param name="ImmediateFlush" value="false"/>
<param name="BufferedIO" value="true"/>

(a) What's the difference between buffering and not-flushing (are there 4 distinct combinations I can configure?)
(b) Is there a way to configure the buffer size? (from script that is)


From what I see in the source :

BufferedIO = true implies ImmediateFlush = false

ImmediateFlush is handled by WriterAppender, which will do a ostream::flush after each output.

BufferedIO is specific to FileAppender. The buffer size can be set via the "buffersize" property. However is seems that those properties (bufferedIO and buffersize) will be silently ignored, since the relevant code is commented.


2. I could not find an example in the log4cxx side (there might be one on the java side) of how to configure the buffer size
for the async appender.

Do you mean by configuration script ?
In the source the function is setBufferSize. I guess a buffersize property is usable in the script. Note that ASyncAppender can only be script configured using an xml file.

(And in general, is there a place where one can find the complete dtd in use?)

I don't know.



Regards

Christophe




<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo