changes logging behavior