Skip to content

Adding newlines to logger - #290

Merged
rjlohan merged 1 commit into
aws-cloudformation:masterfrom
rjlohan:logging-tweak
Jul 20, 2020
Merged

Adding newlines to logger#290
rjlohan merged 1 commit into
aws-cloudformation:masterfrom
rjlohan:logging-tweak

Conversation

@rjlohan

Copy link
Copy Markdown
Contributor

Issue #, if available:#209

Description of changes: Adding newline to LambdaLogPublisher so that logs are intelligible in contract test output in SAM Local

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Adding newline to LambdaLogPublisher so that logs are intelligible in contract test output in SAM Local
@rjlohanrjlohan self-assigned this Jul 16, 2020
@rjlohanrjlohan added the enhancement New feature or request label Jul 16, 2020
@Override
protected void publishMessage(String message) {
this.logger.log(message);
this.logger.log(String.format("%s%n", message));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

%n or \n?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pre-commit rules want it this way.

@rjlohan
rjlohan merged commit 573aec2 into aws-cloudformation:masterJul 20, 2020
@rjlohan
rjlohan deleted the logging-tweak branch July 20, 2020 18:09
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancementNew feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@rjlohan@anshikg@ammokhov