Buffered logger writes logs to a file after 5 logs have been collected