Skip to content

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