Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

support batch sending and logging & refactor tests #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

springuper
Copy link

our app may flush tons of messages in a very short period, so batch processing is reasonable. Changes are:

  • extends Scribe.prototype.send(category, message) to Scribe.prototype.send(category, messages), if messages is not Array it will be converted to Array
  • add Logger.prototype.logMessages(level, msgs), which internally call Scribe.prototype.send(category, messages)
  • refactor tests

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant