[Lazarus] Is it possible to change LazLogger to use unbuffered output?

Martin Frb lazarus at mfriebe.de
Thu Apr 9 03:43:16 CEST 2015


On 09/04/2015 02:38, Donald Ziesig wrote:
> Hi All!
>
> LazLogger is quite useful in debugging components, but it would be 
> much more useful if the output were unbuffered such that lines written 
> to DebugLn would show in the terminal immediately.  Right now, only a 
> portion of the debug output appears unless I append many dummy 
> characters to the debug output to flush the output buffer. Otherwise I 
> can't see all of my output until well after it has been written.

You can look at the units and see if you can add any flushing anywhere.

There is

property LazLogger.CloseLogFileBetweenWrites : Boolean

So in your initialization: LazLogger.CloseLogFileBetweenWrites := True;

might help




More information about the Lazarus mailing list