update the logger so that it always prints 5 lines