BufferingLogger is a logger that buffers log entries and then writes them all at once.