Replace Logger since == operator is behaving whacky in different ruby versions