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

Batch log requests #58

Open
jaketodaro opened this issue Jun 15, 2016 · 1 comment
Open

Batch log requests #58

jaketodaro opened this issue Jun 15, 2016 · 1 comment
Milestone

Comments

@jaketodaro
Copy link

It would be nice to batch log messages that happen in quick succession. This would cut down on the number of network requests for errors that happen in tight loops, or anything else where multiple log messages are sent in quick succession. I'm not sure how to do this without potentially cutting off the last log messages if the user closes the page quickly after causing the log messages to be sent.

logger.batchLogDelay(1000) could make the logger wait 1000ms after receiving a log to send the original log and any logs that have been sent since the original one.

@ajbrown
Copy link
Owner

ajbrown commented Jun 17, 2016

@jaketodaro This is something on my scratchpad for 1.0. I'll make this the official story for it :-) Thanks!

@ajbrown ajbrown added this to the 1.0.0 milestone Jun 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants