How to Log Binary Information

When working with EBCDIC connectors, it could be quite challenging to triage issues with the backend.

To answer this need, OpenLegacy provided two approaches:

  • Using the CLI:
    ol test asset --internal-debug-type FOLDER --internal-debug-folder <log directory> <asset_name>
    
    The above command will save the EBCDIC request and response into the requested log directory.
    In general, the supported options are NONE/FOLDER/LOG/HEX
    Where LOG and HEX are shown in the terminal prompt.
  • Using the API:
    Add the following to the API application YAML (/build/resources/main/application.yml).
    ol:
      debug:
        internal:
          include:
          - folder:<log directory>
            type: < NONE/FOLDER/LOG/HEX >
            log-level: debug
            encoding: <EBCDIC Encoding such as CP037>