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:
The above command will save the EBCDIC request and response into the requested log directory.ol test asset --internal-debug-type FOLDER --internal-debug-folder <log directory> <asset_name>
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>
Updated 6 months ago