Improve default logging behavior