Skip to content

Conversation

@vitalijr2
Copy link
Contributor

As I wrote in #472 there is the specific AWS CloudWatch issue related to using the linefeed character \n as a separator.

And the quick fix exists: replace \n with \r.

I have added a new configuration key cloudwatchNewlineFix: when it is true all linefeed characters are replaced with carriage return ones.

I prefer the name cloudwatchNewlineFix instead of replaceNewlineWithCarriageReturn as it is a specific feature and should not be used on any other platform.

Signed-off-by: Vitalij Berdinskih <vitalij_r2@outlook.com>
Signed-off-by: Vitalij Berdinskih <vitalij_r2@outlook.com>
@vitalijr2 vitalijr2 changed the title CloudWatcg Newline Fix CloudWatch Newline Fix Nov 19, 2025
@ceki
Copy link
Member

ceki commented Nov 19, 2025

@vitalijr2 Thank you for this PR. As mentioned earlier, I am unfamiliar with CloudWatch. Thus, I suggest that you publish this version of SimpleLogger as a separate artifact under an groupId:artifactId of your choice. How does that sound?

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.

2 participants