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

Messages Threshold #21

Closed
oussama-benmahmoud opened this issue Dec 9, 2015 · 1 comment
Closed

Messages Threshold #21

oussama-benmahmoud opened this issue Dec 9, 2015 · 1 comment

Comments

@oussama-benmahmoud
Copy link

Hi,

Is there any Threshold method in js-logger? or an event that tells me this is the last message or something?

I want to set the handler to send messages to a WS endpoint, but not in every message I have, I want to more that more optimized so I thought about a threshold, something like threshold=5 so after the 5th message I send the array of messages to the server then reset the array...

Thanks.

@jonnyreeves
Copy link
Owner

Sounds like you want to implement your own debounced log handler?

Closing for now as I believe this can be fixed without modification to js-logger, feel free to re-open if you run into problems.

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

2 participants