Init the debug output logging system, needs to be called once to activate debug output. As long the system is not initialized, all calls to any of the other functions will be ignored and no debug output is written at all.
SYNTAX:
LogInit file$, fmode%
INPUTS:
file$ (STRING)
- The name of the logfile inclusive path or an empty string to use the default name ("qbdebug.txt").
fmode% (INTEGER)
- Any of the filter mode constants defined in file qbdebug.bi, which will specify how to print control chars (see also below).
MODE CONSTANTS:
QBDEBUG_FilterNone
- Do not filter anything:
- This may lead to distortion of the debug tree layout, if there are any tabs, linefeeds, formfeeds etc. in the output string.
QBDEBUG_FilterSimple
- Do simple filtering:
- Any ASCII code < 32 is replaced by a vertical bar "|" in the output.
QBDEBUG_FilterFull
- Full info filtering:
- Any ASCII code < 32 is replaced in the form "|xx|", where "xx" is the decimal ASCII value.