Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to enable writing to new lines for tsv formatter #1691

Merged
merged 6 commits into from
Sep 13, 2017
Merged

Add support to enable writing to new lines for tsv formatter #1691

merged 6 commits into from
Sep 13, 2017

Conversation

ryysud
Copy link
Contributor

@ryysud ryysud commented Sep 12, 2017

I found that writing to new line is impossible with tsv formatter.
So, I add add_newline parameter to control writing to new line by tsv formatter.


def format(tag, time, record)
@keys.map{|k| record[k].to_s }.join(@delimiter)
formatted = ""
formatted << @keys.map{|k| record[k].to_s }.join(@delimiter)
Copy link
Member

Choose a reason for hiding this comment

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

formatted = @keys.map{|k| record[k].to_s }.join(@delimiter) seems enough

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@repeatedly Thanks. I fix it.

@repeatedly repeatedly merged commit c59ee4a into fluent:master Sep 13, 2017
@ryysud ryysud deleted the fix-tsv-formatter branch September 13, 2017 15:59
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