bb-log: abstract out get_latest, add cooker logs