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

FETCH_DATA_TIMER: 1

Total time for Import

SUBSTITUTION_TIMER: 2

Sub time for Substitution during import / export

SUBSTITUTION_INIT_TIMER: 3

Sub time for initializing Substitution.

TEST1_TIMER 4

Time for import data into psfi (TotalConvert)

TEST2_TIMER 5

Sub time for import of char/strings (CharConvert)

TEST4_TIMER 6

Sub time for import and convert of Time (TimeConvert)

PSFI_INIT_TIMER 7

Time for Initialization of PsFi.dll

FILEDEF_LOAD_TIMER 8

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.