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 properties:
Call the SetConfigOption method, and pass in the ConfigOption instance.
ConfigOption configs = new ConfigOption(); configs.ConfigOptionData = input_filename; configs.ConfigOptionType = FilterConstant.ConfigOptionConstant.CFG_SETOOPSRCFILE; configs.ConfigOptionValue = 0; objFilter.SetConfigOption(configs);
|
|