TylerBrock / saw

Fast, multi-purpose tool for AWS CloudWatch Logs
MIT License
1.4k stars 77 forks source link

Deduplicate newlines in message endings for compact output #20

Closed klichukb closed 5 years ago

klichukb commented 5 years ago

Hey. First of all, thanks, this tool is awesome.

Just a small suggestion: if an event message has "\n ending, Println will basically print two newlines, this will expand output too much. My PR ensures there's only one "\n" in the end.

Before:

[2018-10-14T23:37:24+03:00] ... Message 1

[2018-10-14T23:37:24+03:00] ... Message 2

[2018-10-14T23:37:24+03:00] ... Message 3

After:

[2018-10-14T23:37:24+03:00] ... Message 1
[2018-10-14T23:37:24+03:00] ... Message 2
[2018-10-14T23:37:24+03:00] ... Message 3
TylerBrock commented 5 years ago

Thank you! This will greatly improve Saw for output that includes newlines.

TylerBrock commented 5 years ago

This was shipped in v1.2.1

klichukb commented 5 years ago

Thanks, @TylerBrock !