Avocarrot interview question

How would you implement a buffering strategy for a logger module.