new way of getting the logger