Enable File Extractor Logging

Tracing of Extractor script execution is controlled by the Extractor server INI file and the TRACE statement in the script. Tracing of script execution is enabled by the TRACE ON and disabled by the TRACE OFF statements in the Extractor script. To view the trace output a trace entry is added for the EXTRACTOR subsystem to the relevant Extractor server’s INI file (Windows & UNIX both use IRADICOL.INI).

The following is an example INI file to log Extractor script execution tracing to the IRADICOL.LOG file.

[TRACE]
DebugDeviceType=2
DebugDevice=iradicol.log
TRACE_MODULE0=EXTRACTOR
Since tracing usually results in large volumes of trace output which can slow down the Extractor server significantly, it is recommended that care is taken to remember to disable tracing immediately after it has been used to identify problems with an Extractor script.


The following illustrates sample output from an Extractor execution trace:

12:59:30 fscrapep 000008219 CXpFilescrapper::Execute: state INITIAL -> RUNNING (STRMAT.EXT) timertype=0 timertag=0
12:59:30 fscrapep 000006583 (line 7) Trace On
12:59:30 fscrapep 000005959 (line 8) OnEOL NEWLINE
12:59:30 fscrapep 000005894 (line 10) Label NEWLINE
12:59:30 fscrapep 000006275 (line 12) If "ONE" ONE
12:59:30 fscrapep 000006285 (line 12) + If 'ONE' = 'ONE' ONE
12:59:30 fscrapep 000006294 (line 12) + (case sensitive)
12:59:30 fscrapep 000005894 (line 28) Label one
12:59:30 fscrapep 000006790 (line 29) Var A = 7
12:59:30 fscrapep 000006790 (line 30) Var B = 0
12:59:30 fscrapep 000006790 (line 31) Var C = 0
12:59:30 fscrapep 000007152 (line 32) Eval B = 2*a+2-4-1
12:59:30 fscrapep 000007181 (line 32) + B = 11
12:59:30 fscrapep 000007152 (line 33) Eval C = 2*(a-2)+1
12:59:30 fscrapep 000007181 (line 33) + C = 11
12:59:30 fscrapep 000005657 (line 34) Set BIN16 = B
12:59:30 fscrapep 000005671 (line 34) + Field BIN16 = 11
12:59:30 fscrapep 000005657 (line 35) Set BIN32 = C
12:59:30 fscrapep 000005671 (line 35) + Field BIN32 = 11
12:59:30 fscrapep 000005742 (line 36) DeliverRecord
12:59:30 fscrapep 000006648 (line 37) Goto CONTINUE
12:59:30 fscrapep 000005894 (line 14) Label CONTINUE
12:59:30 fscrapep 000006275 (line 16) If ! "TWO" NOTTWO
12:59:30 fscrapep 000006285 (line 16) + If 'ONE' <> 'TWO' NOTTWO
12:59:30 fscrapep 000006294 (line 16) + (case sensitive)
12:59:30 fscrapep 000005894 (line 39) Label NOTTWO
12:59:30 fscrapep 000005172 (line 40) Set IDFIELD = "NOT2"
12:59:30 fscrapep 000005742 (line 41) DeliverRecord
12:59:30 fscrapep 000006648 (line 42) Goto CONTINUE2
12:59:30 fscrapep 000005894 (line 18) Label CONTINUE2
12:59:30 fscrapep 000006317 (line 20) If StringMatch "ABC*??DEF*" FOUNDIT
12:59:30 fscrapep 000006328 (line 20) + If 'ONE' matches 'ABC*??DEF*' FOUNDIT
12:59:30 fscrapep 000006337 (line 20) + (case sensitive)
12:59:30 fscrapep 000004253 (line 21) SkipLines 1
Provide feedback on this article