Added a helper which prints the last 10 logs