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
ConfigOptionwith the following arguments:- Set the
OptionTypetoCFG_SETOOPSRCFILE. - Set the
OptionValueto 0. - Set
OptionDatato theinput_filename.
- Set the
- Call the
setConfigOptionmethod, and pass in theConfigOptioninstance.
Example
if((filterFlags & Filter.FILTERFLAG_OOPLOGON) == Filter.FILTERFLAG_OOPLOGON)
{
ConfigOption config = new ConfigOption(Filter.CFG_SETOOPSRCFILE, 0, inFile);
objFilter.setConfigOption(config);
}