[Reviewer: Alex] Add option to clean up logs based on suffix

Alex, can you review this change to add an option to clean up logs based on the log suffix as well as prefix
Why not just:

```
for logfile in sorted(logs)[:size_to_delete]:
  os.unlink(logfile)
```