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

Format for sending data #7

Open
mattinger opened this issue Feb 13, 2018 · 0 comments
Open

Format for sending data #7

mattinger opened this issue Feb 13, 2018 · 0 comments

Comments

@mattinger
Copy link

It would be helpful if one could override the data format that is sent. Currently, it appears that it just joins log records with a line separator. However, if one's logging server accepts json data, that won't necessary work:

[ { ... }, { ... } ]

One could achieve the inner json formatting pretty easily with a custom log formatter, and just pushing a json string, and supplying a formatter which printed the log message only.

It would be helpful to overload the push method to accept some form of joiner, so one could potentially wrap those messages inside of a json array element.

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

No branches or pull requests

1 participant