threadsafelog FlushBuffers property
Return to Introduction  Previous page  Next page
Applies to
acThreadSafeLog component.  

Declaration
property FlushBuffers: Boolean;  

Description
The FlushBuffers property controls whether the component should automatically clear the buffers for the specified log file and cause all buffered data to be written imediately after calling the Log method.  
 
iiinfo When you call Log method, it's typically write the data to the internal system buffer that the operating system writes to the disk on a regular basis. When FlushBuffers property is True, the component automatically write all of the buffered information for the file (specified in the FileName property) to disk.  
 
iiwarning The flush operations takes additional CPU time which can be critical if you running some server application with tons of active threads. It is recommended to leave FlushBuffers property False, and just call Flush method when it's required.  

See also
FileName property;  
Log and Flush methods.