Break out logger as a reusable component