mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 10:00:34 +02:00
LazLogger: Comments / Ifdef'ed flush log
git-svn-id: trunk@60244 -
This commit is contained in:
parent
591bb0ff09
commit
a9f2cac891
@ -70,6 +70,8 @@ type
|
|||||||
|
|
||||||
{ TLazLoggerFileHandleThreadSave
|
{ TLazLoggerFileHandleThreadSave
|
||||||
file operations in critical section
|
file operations in critical section
|
||||||
|
|
||||||
|
Requires that DoOpenFile is called by main thread. Otherwise the filehandle may get closed...
|
||||||
}
|
}
|
||||||
|
|
||||||
TLazLoggerFileHandleThreadSave = class (TLazLoggerFileHandle)
|
TLazLoggerFileHandleThreadSave = class (TLazLoggerFileHandle)
|
||||||
@ -480,6 +482,7 @@ begin
|
|||||||
if FActiveLogText = nil then exit;
|
if FActiveLogText = nil then exit;
|
||||||
|
|
||||||
Write(FActiveLogText^, s);
|
Write(FActiveLogText^, s);
|
||||||
|
{$IFDEF LAZLOGGER_FLUSH} Flush(FActiveLogText^); {$ENDIF}
|
||||||
|
|
||||||
if FCloseLogFileBetweenWrites then
|
if FCloseLogFileBetweenWrites then
|
||||||
DoCloseFile;
|
DoCloseFile;
|
||||||
|
Loading…
Reference in New Issue
Block a user