TLazLoggerFileHandleThreadSave class
Performs file operations using a critical section.
Declaration
TLazLoggerFileHandleThreadSave = class(TLazLoggerFileHandle)Inheritance
- TLazLoggerFileHandleThreadSave
- TLazLoggerFileHandle
Description
TLazLoggerFileHandleThreadSave is a TLazLoggerFileHandle descendant which implements a threaded file logger. TLazLoggerFileHandleThreadSave uses a TRTLCriticalSection class instance to lock the log file during file output operations. Requires that DoOpenFile is called by the main application thread. Otherwise the filehandle may get closed.
Methods
Create | public | Constructor for the class instance. |
Destroy | public | Destructor for the class instance. |
WriteToFile | public | Re-implements the method to use a critical section to protect write access to the handle for the class instance. |
WriteLnToFile | public | Re-implements the method to use a critical section to protect write access to the handle for the class instance. |
Inherited
From TLazLoggerFileHandle (10)
ActiveLogText CloseFile CloseLogFileBetweenWrites LastWriteFailed LogName OpenFile ResetWriteFailedCounter UseStdOut WriteFailedCount WriteTarget
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
