Add log limit for archive logs in main