Debug features using an .INI file
By default the Psfi.DLL looks for a file named psfi.INI in the directory from which it was loaded.
The following ENV variables are also available for specifying another file location.
The feature LOG uses common source files (O:\PSCommon\PsMisc\PsEnv.cpp) also used by Psui.DLL and PsLang.dll.
The header file PsfiEnv.h contains all definitions for LogTimers, LogInfo and LogDebug.
!---- PSFI.INI file
!---- Comment begins with a !
!----
[LOG]
!
Error = yes
!Warning = no
Clear = no
!Timer = 1
!Info = 1
Entry | Values | Description |
---|---|---|
Error | Yes/No (default No) | Log Errors |
Warning | Yes/No (default No) | Log Warnings |
Message | Yes/No (default No) | Log Messages Not used in psfi |
Clear | Yes/No (default Yes) | Reset the Psfi.log file each time the program is started and the file interface has been in use. |
Timer | BitField (default 0) | Logs different timers of the file interface performance. 3 (1+2) means timer 1 and timer 2 is in use
Total time for Import
Sub time for Substitution during import / export
Sub time for initializing Substitution.
Sub time for import of char/strings (CharConvert)
Sub time for import and convert of Time (TimeConvert)
Time for Initialization of PsFi.dll
The time it takes to load the file that is specified by the FILEDEF() tag in the OTRA.FID file. |
Info | BitField (default 0) | Logs different information 1: Info about Substitutions |
Debug | BitField (default 0) | Control Different flow in Code at runtime. NB only active in
the debug version of the DLL. Not in use for the File Interface. |