[Overview][Types][Classes][Procedures and functions][Index] |
Opens the output handle for the logger when CloseLogFileBetweenWrites is False.
Source position: lazlogger.pas line 56
public procedure TLazLoggerFileHandle.OpenFile; |
Calls a private method to ensure that a Text handle is allocated for the output destination. No actions are performed when:
To use an output file, set LogName to a valid file path and name which allows write access prior to calling OpenFile.
To use the stdout device, set LogName to an empty string and UseStdOut to True prior to calling OpenFile.
RTL routines like Assign, Append, or Rewrite are called to associate the Text handle for the logger and to establish the FileMode for write access. On successful completion of the method, ActiveLogText is updated with the TextRec for the file name or stdout device in Output. If an exception occurs, it is caught and an error message is written to the stdout device.
Version 4.0 | Generated 2025-05-03 | Home |