type TExceptionLogger = class(TObject)
Exception logger class.
![]() |
ExceptionLogFile: string; |
![]() |
LogDateTime: boolean; |
![]() |
Enabled: boolean; |
![]() |
constructor Create; |
![]() |
procedure WriteLog(const str: string); overload; |
![]() |
procedure WriteLog(const e: Exception); overload; |
![]() |
ExceptionLogFile: string; |
|
Log file full path. The default value is CommonAppDataDir\ZylSerialPortExceptionLog.log | |
![]() |
LogDateTime: boolean; |
|
If this property is true, date-time will be added at the beginning of each line. | |
![]() |
Enabled: boolean; |
|
If this property is true, exceptions will be logged in the log file. | |
![]() |
constructor Create; |
|
Constructor. | |
![]() |
procedure WriteLog(const str: string); overload; |
|
Writes a line in the log file.
Parameters
| |
![]() |
procedure WriteLog(const e: Exception); overload; |
|
Writes the message of an exception in the log file. The line will start with 'EXCEPTION:'
Parameters
| |