Report the File Name in Stream Mode
When you run Filter in file mode, the file name is always reported in the log file. To report the file name in stream mode, you must extract it through the API.
To add the input file name to the log
-
Create an instance of
ConfigOption
with the following arguments:- Set the
OptionType
toCFG_SETOOPSRCFILE
. - Set the
OptionValue
to 0. - Set
OptionData
to theinput_filename
.
- Set the
- Call the
setConfigOption
method, and pass in theConfigOption
instance.
Example
if((filterFlags & Filter.FILTERFLAG_OOPLOGON) == Filter.FILTERFLAG_OOPLOGON) { ConfigOption config = new ConfigOption(Filter.CFG_SETOOPSRCFILE, 0, inFile); objFilter.setConfigOption(config); }