Skip to content

Print more than one json in FileLogger#52

Open
pandid wants to merge 2 commits intoeverwatchsolutions:masterfrom
pandid:numoflines_file
Open

Print more than one json in FileLogger#52
pandid wants to merge 2 commits intoeverwatchsolutions:masterfrom
pandid:numoflines_file

Conversation

@pandid
Copy link

@pandid pandid commented Nov 23, 2018

We needed to extend the functionality of the FileLogger. Originally it writes just one json object in a file and then moves to the next. If one wants to create big number of such objects this approach not feasible. We added "file.lines". The current functionality is handled by setting "file.lines" to 1 or say "file.lines":"1000".

Commits
added functionality to add print more than one json object per file in FileLogger.

@rjperry611
Copy link

This is good. My team will need this functionality as well. Once your PR is accepted by everwatch, I think I'm going to extend it a little bit further by adding the option for timestamp based roll ups as well.

@andrewserff
Copy link
Member

Sorry for the very long delay on reviewing this. This seems like a good idea, but could you make it default not require the new file.lines? i.e. default it to one if it's not set? And then update the README with the new option?

Thanks for the contribution!

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.

3 participants