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

  1. Create an instance of ConfigOption with the following properties:

    1. Set the ConfigOptionType to CFG_SETOOPSRCFILE.

    2. Set the ConfigOptionValue to 0.

    3. Set ConfigOptionData to the input_filename.

  2. 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;