Skip to content

Add charset in logger based on Z/Os#2398

Draft
Sparsh Gupta (sp-gupta) wants to merge 1 commit into
masterfrom
INC-8143
Draft

Add charset in logger based on Z/Os#2398
Sparsh Gupta (sp-gupta) wants to merge 1 commit into
masterfrom
INC-8143

Conversation

@sp-gupta
Copy link
Copy Markdown
Member

@sp-gupta Sparsh Gupta (sp-gupta) commented Jan 9, 2026

Description

In INC-8143, customer is seeing unreadable logs in the z/os system as the logs are not translated to EBCDIC format.
Default charset in Java 21 is defined by JDK (defaulting to UTF-8).
In Java 8, it is defined by the OS (thus defaulting to IBM-1047 for Z/Os) and that's why previous CP versions didn't face this issue.

Added a config which appends the appropriate charset in the log4j2 configuration.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Z/os pipeline is broken with CP Test Env. We currently don't have a way to test this out.

Checklist:

  • Any variable/code changes have been validated to be backwards compatible (doesn't break upgrade)
  • I have added tests that prove my fix is effective or that my feature works
  • If required, I have ensured the changes can be discovered by cp-ansible discovery codebase
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@sp-gupta Sparsh Gupta (sp-gupta) changed the base branch from master to z2_cp8 January 12, 2026 10:50
@sp-gupta Sparsh Gupta (sp-gupta) changed the base branch from z2_cp8 to master January 12, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant