Add functionality to remove old log entries.