Aggregate log entries to prevent EMFILE error